Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

RatcheT2497
Copy link
Contributor

This PR contributes towards #20518
The ported applications are: ThemeEditor, DisplaySettings and ClockSettings.

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Jan 10, 2025
@RatcheT2497 RatcheT2497 force-pushed the various-gml-compilation-ports branch 2 times, most recently from 06eb4fe to 1b593da Compare January 10, 2025 21:56
@RatcheT2497 RatcheT2497 force-pushed the various-gml-compilation-ports branch from 1b593da to 0e87322 Compare January 11, 2025 14:59
@@ -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);
Copy link
Member

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?

Copy link
Contributor Author

@RatcheT2497 RatcheT2497 Jan 12, 2025

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...

@timschumi timschumi self-requested a review January 22, 2025 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 pr-needs-review PR needs review from a maintainer or community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants