-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Userland: Port some applications to the GML compiler #25637
base: master
Are you sure you want to change the base?
Userland: Port some applications to the GML compiler #25637
Conversation
06eb4fe
to
1b593da
Compare
1b593da
to
0e87322
Compare
@@ -174,11 +164,11 @@ void ThemesSettingsWidget::apply_settings() | |||
auto color_scheme_path = color_scheme_path_or_error.release_value(); | |||
|
|||
if (!m_color_scheme_is_file_based && find_descendant_of_type_named<GUI::CheckBox>("custom_color_scheme_checkbox")->is_checked()) { | |||
auto set_theme_result = GUI::ConnectionToWindowServer::the().set_system_theme(m_selected_theme->path, m_selected_theme->name, m_background_settings_changed, "Custom"sv); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is m_background_settings_changed
hardcoded to false
now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hardcoded it because it was always set to false at the very start of the method unconditionally, which (at least as far as I know) rendered it pretty much moot. It was a reference that BackgroundSettingsWidget set at various points and there currently doesn't seem to be a standardized way of passing variables to compiled widgets either, but it wouldn't make much of a difference.
EDIT: For what it's worth, I tested it a little after removing the forced reset and it didn't seem to do much of anything, so I'm not really sure what's it meant to do...
This PR contributes towards #20518
The ported applications are: ThemeEditor, DisplaySettings and ClockSettings.