-
Notifications
You must be signed in to change notification settings - Fork 40
Dark theme: make it darker #234
Comments
@Feichtmeier Here is a proposal for a darker theme background:
I used the handy_window example to show it with the new headerbar colour. |
I fear I need to test this on a real app - could set up two branches? |
Ofc 👍 I do it at once |
@Feichtmeier Done: https://github.com/Jupi007/yaru.dart/tree/darker-theme-0.03 I did it on my fork. Note that it is requiring this PR to looks like it should (especially the headerbar): ubuntu/handy_window.dart#22 |
The handy_window branch is only needed for the gtk headerbars, right? |
Yes, it is only for gtk headerbars. |
dependency_overrides:
handy_window:
git:
url: https://github.com/Jupi007/handy_window.git
ref: mimic-libadwaita
yaru:
git:
url: https://github.com/Jupi007/yaru.dart.git
ref: darker-theme-0.05
yaru_widgets:
git:
url: https://github.com/ubuntu/yaru_widgets.dart.git
ref: main (plus trailing -> actions in message_bar.dart) |
thanks jp! :) Yeah, this does not work well with our current set of widgets IMO |
I agree that 0.05 is too much. |
The problem is the strong contrast to the headerbar without any content having the same color |
@Feichtmeier fixed the incompatibility with the latest yaru_widgets so now you can use a dependency_overrides:
handy_window:
git:
url: https://github.com/Jupi007/handy_window.git
ref: mimic-libadwaita
yaru:
git:
url: https://github.com/Jupi007/yaru.dart.git
ref: darker-theme-0.03
yaru_widgets:
git:
url: https://github.com/ubuntu/yaru_widgets.dart.git
ref: main $ flutter pub get
Warning: pubspec.yaml has overrides from pubspec_overrides.yaml
Warning: You are using these overridden dependencies:
! handy_window 0.2.0 from git https://github.com/Jupi007/handy_window.git at b9b2c5
! yaru 0.4.8 from git https://github.com/Jupi007/yaru.dart.git at cadea8
! yaru_widgets 2.0.0-beta-4 from git https://github.com/ubuntu/yaru_widgets.dart.git at 1bae20
Running "flutter pub get" in software... 1,941ms |
Imo, the 0.03 version is fine (the 0.05 one was only here to show how it was too much). @Feichtmeier About gtk apps, if you look at nautilus the background color is quite close to the 0.03 version. |
The other solution would be to make the headerbar background like the gtk3 one (quite darker). |
yes I know I don't say it's wrong but that we need to rethink many design ideas we have then |
Honestly, I think our design still looks good with the soft darker background on the latest @jpnurmi screenshot. |
could you create a branch with is a little bit lighter than this 0.03 branch? |
what about a lighter color for cards and banners? |
I will try your both ideas, and create some branches for testing 🙂 |
prob is there ain't only pages with app banners if you got a page with woidgets that have the same bg as this dark bg, the contrast from the page to the headerbar will be super strong and looks IMO pretty off |
I think that https://github.com/Jupi007/yaru.dart/tree/darker-theme-0.02 But I think that the title bar doesn't stand out enough. Maybe should we make it a very little bit brighter 🤔 |
If we make navbars use background instead of surface this could work. Then we have the scaffold in the middle darker where content can be drawn on lighter so it stands out a little more. But we need to test this. I think we need to change both yaruwidgets and yaru to make this work in our apps |
I love the color extension idea btw! We could also use a lighten function Color darken([double amount = .1]) {
assert(amount >= 0 && amount <= 1);
final hslColor = HSLColor.fromColor(this);
final darkenedHslColor =
hslColor.withLightness((hslColor.lightness - amount).clamp(0.0, 1.0));
return darkenedHslColor.toColor();
}
Color lighten([double amount = .1]) {
assert(amount >= 0 && amount <= 1);
final hslColor = HSLColor.fromColor(this);
final lightenedHslColor =
hslColor.withLightness((hslColor.lightness + amount).clamp(0.0, 1.0));
return lightenedHslColor.toColor();
} However, we could also just darken YaruColors.jet :) Initially some years ago it was 1B1B1B I think... or 1A1A1A 🤔 But we also need to make the sidebars we use then use surface instead of background so they stand out more against the background. |
Okay, I was thinking that jet was a fixed color. We could move the extension to yaru_colors, and add this lighten version you propose, wdyt? |
ok 👍 |
another option should be those material color shades w500 etc |
You mean generate a If yes, I don't think it would work, because we really need fine tune. The gap between 900 and 800 is too big. |
oh ok 👍 |
Got some more thoughts on this one Independently of the colour: Background is the colour of the widgets really in the background like scaffold or yarudetailspage Surface is the colour of appbar, navbars and content This needs to sorted out first (Source: https://twitter.com/jordanphughes/status/1619714993250861057?t=h57CaAq99kaaXIcAks1I_A&s=19) I don't know which way we should go with colours yet (brighter in darker in the dark theme in pretty sure but if darker in lighter in the light theme or lighter on darker in the light theme I'm not sure yet but the usage is wrong and I need to fix this first) |
🧓 half a year later I remembered about this again, and modified MusiPod to have a darker dark theme with a modification of yaru.dart and I am kind ahappy with the result current snap store snap from edge with vanilla yaru.dart as comparison on the right side. the color is |
IMO the dark theme is too bright. Not much, but a bit. Maybe make it 4-5% darker
The text was updated successfully, but these errors were encountered: