elementary / switchboard-plug-display

Switchboard Displays Plug
https://elementary.io
GNU General Public License v3.0
14 stars 18 forks source link

Implementing dark theme doesn't save or change system wide #115

Closed liamkinne closed 6 years ago

liamkinne commented 6 years ago

I'm working on this bounty, and I've got something that almost works using this code:

Gtk.Settings.get_default().gtk_application_prefer_dark_theme = state;

And it does change to dark theme, but only for that window and it stops working after the switchboard is reopened.

Elementary Tweaks does this through editing the gtk-3.0 settings file directly, but that seems a bit hacky.

Is there a way to do this through the regular schemas? Since Code and Terminal already have 'prefer-dark-style' keys.

My fork and branch: https://github.com/liamkinne/switchboard-plug-display/tree/prefer-dark-theme-switch

danirabbit commented 6 years ago

Hey thanks for working on this issue! We're tracking it in GitHub here: https://github.com/elementary/switchboard-plug-display/issues/5

This issue is actually about managing display color profiles and ICC files, not about changing Gtk settings.

Closing this issue as a duplicate of #5

davidmhewitt commented 6 years ago

Hey,

I think you have misintepreted the issue. I think the color profiles that the issue refers to are more like color calibration of the monitor, rather than setting a systemwide dark theme.

There is a separate plug/page in switchboard that allows you to color calibrate a display, so that the colors more accurately reflect real world colors or print colors, etc... This issue was refering to having that functionality built into the displays plug rather than having it in a separate page.

I don't think a PR to allow making the dark theme be used systemwide would be accepted for a couple of reasons:

liamkinne commented 6 years ago

That makes a lot of sense... I thought it sounded a bit vague. No worries.