Closed AIIX closed 2 years ago
Closing this in favour of using Kirigami PlatformTheme Plugin to reduce duplication work and since every platform might want to implement it differently, it would probably be best for the platform to export their own PlatformTheme plugin and use Kirigami.Theme roles as required,
An example PlatformTheme plugin implementation can be found https://github.com/OpenVoiceOS/mycroft-embedded-shell/pull/3
Yeah cool, if we can achieve this through a plugin that doesn't need to be embedded in the framework that sounds great.
I love the idea, I've just been thinking about the specifics of how we'd use it, what we'd want the colors called etc. This way we don't need to make a decision for all projects :clap:
Color schemes allow skills to utilise a common color scheme and standardise color usage in skills, This PR adds supports for Mycroft.ColorScheme.
Mycroft.ColorScheme provides 3 colors:
By default Mycroft.ColorScheme will use Kirigami Theme using the Complementary color set to define the three colors, mapped as when useCustomTheme is set to false:
Any platform can define its own set of colors by setting the "useCustomTheme" property to true and providing the color configurations in HexArgb (hexadecimal quad format #AARRGGBB where the first two represent the alpha channel)
The configuration can be provided in /etc/xdg/kde.org/mycroft-gui.conf or /$USER/.config/kde.org/mycroft-gui.conf
Example Configuration:
Example Usage In Skills: