-
Notifications
You must be signed in to change notification settings - Fork 181
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
Improve gtk accent colour palette #3486
Improve gtk accent colour palette #3486
Conversation
Hi @lyubomir-popov,
So except if you think this change is really needed, can you revert this file to it's original look please 🙂 |
@Jupi007 yeah, we discussed already about that together and I think we'll revert that. In case we can add a yaru-colors.scss file with overrides as we do in gtk4 IIRC |
- added various colors from elementary's stylesheet as placeholder.
It makes it easier to maintain and handle in diffs
This reverts commit 0d5afaf.
This reverts commit 0e5162f.
…es to use Make meson to re-use default theme thdefinitions and assets when a theme doesn't provide a specific version for it. As per this we can avoid having multiple symlinks but just ensuring that we always prefer theme-specific files, and in case they don't exist we fallback to the same theme variant or to the default theme. As per this, we can avoid lots of duplication and symlinks that are not easiest to maintain. One note on sassc: it will now include multiple paths from where to pick a specific included resource. Note that if "@include 'fooo'" is used in a sym-linked resource it will try to load that from the parent folder of the sym-link target resides. So, we still need to preserve some symlinks otherwise sassc will just try to load everything from the target folder. In case a file needs to be overridden by a theme, ensure that it's going to be loaded (`strace` is your friend).
Use some scss magic to create accent color themes without having us to re-create or re-define all the themes. We use an accent-colors scss file as entry point that may define the yaru variables for accent colors and then we load the standard themes. In case such variables are defined, the accents are set.
Depending on the theme we want to use we may need to load different assets, so replace the "url" function so that we can dynamically update the returned value depending on the theme.
…figure out files to use
- Also improved the 2-shade gradient by making it a 12-shade gradient of black and white for folders and user-desktop.
Make some "dummy" assets that can be used to generate svg with replaced colors, and use them for the GNOME Shell theme.
15ffc67
to
8feeb57
Compare
@Jupi007 Yes, as @3v1n0 said we agreed to revert it, I'll push an update to my pr. As for my reasons to initially go this way - doing any extensive theming work with hundreds of inline ifs would be quite difficult. Ideally those should be defined in one control file, and anotated - so if you come looking for a hover grey, you know where to look to find it, or change it across all widgets. So I still think it's a good idea to pitch this refactor upstream, but not something that has to happen now by any means. Regarding the duplication - it only increases the file size of the scss, not the generated css, and I think that's a small price to pay for being able to introduce some level of consistency. |
@lyubomir-popov Okay, thanks for the explanation. Honestly, Gtk3 is very stable since a while. |
Didn't know that, thanks for the additional context. Makes sense to leave it be then. |
dadb4c4
to
83afea3
Compare
@3v1n0 I've updated the colour names and restored the _colors.scss. I've removed some color transformations that I think are unnecessary. Please have a look and let me know if you need anything else. (I've also added fancier colour names like viridian, olive, bark) |
@lyubomir-popov are the new-color codes final? asking because I'll change the colors offered in the settings appearance panel and in what order should they be presented ? (Currently for context the order is Orange (default), Aqua, Blue, Green, Pink, Purple, Red, Yellow) |
@Muqtxdir yes, they are final. The order should be as in the scss file - they are ordered by hue, from the default ubuntu orange on the left to the red on the right:
|
thanks for the clarification @lyubomir-popov I'll remove any transformations on the orange selector and arrange all the colors as you've suggested based on the hue. |
f0bbc11
to
6b822ee
Compare
Closing this as it has been merged in the branch that is part of #3416 |
In the image below, the numbers inside colour swatches show that the minimum required contrast ratios from the WCAG spec are met:
Below a list of screenshots of all proposed colours in both the light and the dark themes: