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

Support dark mode #684

Draft
wants to merge 22 commits into
base: master
Choose a base branch
from
Draft

Support dark mode #684

wants to merge 22 commits into from

Conversation

lenemter
Copy link
Member

@lenemter lenemter commented Sep 2, 2023

Fixes #688
Closes #563
Closes #499

To do:

  • Deduplicate objects
  • More testing

@BAProductions
Copy link

Close my commit well

@lenemter lenemter marked this pull request as ready for review January 27, 2024 12:05
@lenemter lenemter requested a review from a team January 27, 2024 12:05
danirabbit
danirabbit previously approved these changes Jan 30, 2024
Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

🚀

@danirabbit
Copy link
Member

Testing this with the latest settings-daemon, I am now getting a blank screen on the greeter 😬 Does this need to be updated too?

@lenemter
Copy link
Member Author

lenemter commented Jan 31, 2024

That's weird. Have you installed elementary/wingpanel#499 by any chance? If you have, try uninstalling it.

@lenemter
Copy link
Member Author

lenemter commented Feb 3, 2024

I fixed a bug that prevented setting user preferences, everything should work as expected now.

@danirabbit
Copy link
Member

danirabbit commented Feb 5, 2024

Sorry for taking a while to respond! Just tried again on a relatively clean OS 8 install where I have not had that wingpanel branch and I'm still getting a blank/gray screen with this branch. So it seems like the compositor is probably loading but not the panel or greeter window

@lenemter
Copy link
Member Author

lenemter commented Feb 8, 2024

@danirabbit Not sure what might have caused that. Can you send me logs from /var/log/lightdm/seat0-greeter.log please?

@danirabbit
Copy link
Member

danirabbit commented Feb 13, 2024

@lenemter sorry for taking a while to follow up!

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.863: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.863: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.863: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:05.863: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.863: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:05.863: g_settings_set_value: key 'document-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.863: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.865: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.865: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.865: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:05.865: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.865: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:05.865: g_settings_set_value: key 'font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.865: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.866: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.866: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.866: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:05.866: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.866: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:05.866: g_settings_set_value: key 'monospace-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:05.866: g_variant_unref: assertion 'value != NULL' failed

** (io.elementary.greeter:39487): CRITICAL **: 10:02:05.879: MainWindow.vala:350: prompt: `Password: ' (1)

** (io.elementary.greeter:39487): CRITICAL **: 10:02:06.698: MainWindow.vala:350: prompt: `Password: ' (1)

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.364: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.364: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.364: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:07.364: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.364: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:07.364: g_settings_set_value: key 'document-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.364: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.367: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.367: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.367: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:07.367: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.367: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:07.367: g_settings_set_value: key 'font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.367: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.369: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.369: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.369: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:07.369: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.369: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:07.369: g_settings_set_value: key 'monospace-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:07.369: g_variant_unref: assertion 'value != NULL' failed

** (io.elementary.greeter:39487): CRITICAL **: 10:02:07.379: MainWindow.vala:350: prompt: `Password: ' (1)

** (io.elementary.greeter:39487): CRITICAL **: 10:02:08.084: MainWindow.vala:350: prompt: `Password: ' (1)

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.866: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.866: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.866: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:08.866: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.866: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:08.866: g_settings_set_value: key 'document-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.866: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.868: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.868: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.868: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:08.868: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.868: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:08.868: g_settings_set_value: key 'font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.868: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.878: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.878: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.878: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:08.878: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.878: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:08.878: g_settings_set_value: key 'monospace-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:08.878: g_variant_unref: assertion 'value != NULL' failed

** (io.elementary.greeter:39487): CRITICAL **: 10:02:08.886: MainWindow.vala:350: prompt: `Password: ' (1)

** (io.elementary.greeter:39487): CRITICAL **: 10:02:09.767: MainWindow.vala:350: prompt: `Password: ' (1)

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.550: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.550: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.550: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:10.550: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.550: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:10.550: g_settings_set_value: key 'document-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.550: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.551: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.552: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.552: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:10.552: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.552: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:10.552: g_settings_set_value: key 'font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.552: g_variant_unref: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.553: g_variant_new_string: assertion 'string != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.553: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.553: g_variant_ref_sink: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:10.553: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.553: g_variant_get_type_string: assertion 'value != NULL' failed

(io.elementary.greeter:39487): GLib-GIO-CRITICAL **: 10:02:10.553: g_settings_set_value: key 'monospace-font-name' in 'org.gnome.desktop.interface' expects type 's', but a GVariant of type '(null)' was given

(io.elementary.greeter:39487): GLib-CRITICAL **: 10:02:10.553: g_variant_unref: assertion 'value != NULL' failed

@lenemter lenemter mentioned this pull request Feb 14, 2024
@zeebok
Copy link
Contributor

zeebok commented May 23, 2024

@lenemter There is a conflict to resolve now

@zeebok
Copy link
Contributor

zeebok commented Jun 24, 2024

I am seeing the same compiler errors as the checks

src/Application.vala Outdated Show resolved Hide resolved
Copy link
Member

@tintou tintou left a comment

Choose a reason for hiding this comment

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

a few nits


Gtk.init (ref args);

var window = new Greeter.MainWindow ();
window.show_all ();

try {
portals = new Greeter.SubprocessSupervisor ({"/usr/libexec/xdg-desktop-portal"});
Copy link
Member

Choose a reason for hiding this comment

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

It is unclear to me why you need to spawn this?

});

try {
settings_daemon = new Greeter.SubprocessSupervisor ({"io.elementary.settings-daemon"});
Copy link
Member

Choose a reason for hiding this comment

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

Also unclear?

Comment on lines +567 to +568
changed_properties.lookup ("PrefersColorScheme", "i", out prefers_color_scheme);
greeter_act.prefers_color_scheme = prefers_color_scheme;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
changed_properties.lookup ("PrefersColorScheme", "i", out prefers_color_scheme);
greeter_act.prefers_color_scheme = prefers_color_scheme;
if (changed_properties.lookup ("PrefersColorScheme", "i", out prefers_color_scheme)) {
greeter_act.prefers_color_scheme = prefers_color_scheme;
}

@lenemter lenemter marked this pull request as draft July 4, 2024 16:01
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.

Pantheon greeter (login screen and lock screen) on elementary OS 7.1 does not follow the dark visual style
5 participants