Skip to content

Commit

Permalink
Brighten the color of inactive preview icons for dark themes for issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Oct 30, 2023
1 parent 6d5d516 commit 6d6e359
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/aworkspaces.cc
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,14 @@ void WorkspaceButton::paint(Graphics &g, const YRect& r) {
}

ref<YIcon> icon;
const bool dark = surface.color.isDark();
YColor colors[] = {
surface.color,
surface.color.brighter(),
surface.color.darker(),
dark ? surface.color.darker() : surface.color.brighter(),
dark ? surface.color.brighter() : surface.color.darker(),
getColor(),
YColor(), // getColor().brighter(),
getColor().darker()
dark ? getColor().brighter() : getColor().darker()
};

for (YFrameWindow *yfw = manager->bottomLayer(WinLayerBelow);
Expand Down

0 comments on commit 6d6e359

Please sign in to comment.