standardnotes / desktop

[Moved to https://github.com/standardnotes/app] A free, open-source, and end-to-end encrypted notes app. https://standardnotes.com
GNU Affero General Public License v3.0
1.4k stars 115 forks source link

Is building a GTK-based theme technically possible? #666

Open MaybeThisIsRu opened 3 years ago

MaybeThisIsRu commented 3 years ago

Hi,

I really detest using SN on desktop for two reasons:

I'm wondering if it is technically possible to write a theme for SN that uses GTK values? So if my desktop environment is in day mode, this SN theme inherits those values, and if my desktop environment is in night mode, then the SN theme inherits those values.

I don't think I have the capability to write the theme myself (I guess?), but I'm wondering if this is technically possible?


I understand this wouldn't apply to the web or Android version, so I'm opening it here. Please guide me to the correct place if this is not it.

JaspalSuri commented 3 years ago

Hi @hirusi,

While the desktop app doesn't currently support the ability to switch the app's theme according to the system's theme, users can create themes for the desktop app. Here's the support article on how to get started. All themes generally work automatically across all of our apps. 🙂

Until someone creates a light and dark GTK theme, you can try out a theme inspired by Ubuntu's Yaru theme or other themes that were created by community.

MaybeThisIsRu commented 3 years ago

Hi @JaspalSuri! I'm aware of these themes, and they are targeting a very specific GTK theme and emulating that look inside of SN.

What my question is about is whether it is possible to build a theme that inherits the current GTK theme values and uses them. So no matter which desktop theme, which distribution -- as long as it's based on GTK, the theme would look and feel native.

Does that make sense?

JaspalSuri commented 3 years ago

Hi @hirusi,

I'm sorry for not understanding what you meant. I don't know if it's currently possible since the desktop apps currently use the Electron framework and not GTK, but I will double-check with our desktop dev. 🙂

arielsvg commented 3 years ago

Hey @hirusi! I'm afraid that's not currently possible, while it may be possible to read GTK values from the desktop app we would then have to build a sustainable way to communicate that to the themes… This would be a pretty big undertaking that we definitely don't have the resources for at the moment 😅