Skip to content

UI: Set light text for dark theme (mac)#226

Open
odinkomnogim wants to merge 1 commit intomasterfrom
ui-dark_theme
Open

UI: Set light text for dark theme (mac)#226
odinkomnogim wants to merge 1 commit intomasterfrom
ui-dark_theme

Conversation

@odinkomnogim
Copy link
Copy Markdown
Collaborator

No description provided.

@odinkomnogim odinkomnogim requested a review from hrant0107 May 1, 2025 14:38
Base automatically changed from dev to master May 5, 2025 12:56
Comment thread mapflow/mapflow.py
self.dlg.zoomCombo.setCurrentIndex(zoom_index)

# Check QGIS UI theme
self.dlg.check_ui_theme(qgis_theme)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just naming: this function does not check theme, but applies it, so it should be better called "apply_ui_theme"

if not theme_name == 'Night Mapping':
return
text_color = self.palette().midlight().color().name()
light_text = "QPushButton {color:" + "{}".format(text_color) + "}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better move this string generation somewhere to utils? Not sure though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants