diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-02 20:53:13 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-03-02 20:53:13 +0200 |
commit | 12878147d71c4551722d3cc3f54af20a306faa26 (patch) | |
tree | 2d304827efc08c7e8a7eec476c5d6efcaabbdfe8 /src/ui/window.c | |
parent | 8d98b4e0d1d83b9a170dd8dccd86451c1c104419 (diff) |
Windows: App icon color for custom frame
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 1dfdd99e..3518d97e 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1671,11 +1671,11 @@ void draw_Window(iWindow *d) { | |||
1671 | /* App icon. */ | 1671 | /* App icon. */ |
1672 | const iWidget *appIcon = findChild_Widget(d->root, "winbar.icon"); | 1672 | const iWidget *appIcon = findChild_Widget(d->root, "winbar.icon"); |
1673 | if (isVisible_Widget(appIcon)) { | 1673 | if (isVisible_Widget(appIcon)) { |
1674 | const int size = appIconSize_(); | 1674 | const int size = appIconSize_(); |
1675 | const iRect rect = bounds_Widget(appIcon); | 1675 | const iRect rect = bounds_Widget(appIcon); |
1676 | const iInt2 mid = mid_Rect(rect); | 1676 | const iInt2 mid = mid_Rect(rect); |
1677 | const iBool isLight = isLight_ColorTheme(colorTheme_App()); | 1677 | const iBool isLight = isLight_ColorTheme(colorTheme_App()); |
1678 | iColor iconColor = get_Color(gotFocus || isLight ? white_ColorId : cyan_ColorId); | 1678 | iColor iconColor = get_Color(gotFocus || isLight ? white_ColorId : uiAnnotation_ColorId); |
1679 | SDL_SetTextureColorMod(d->appIcon, iconColor.r, iconColor.g, iconColor.b); | 1679 | SDL_SetTextureColorMod(d->appIcon, iconColor.r, iconColor.g, iconColor.b); |
1680 | SDL_SetTextureAlphaMod(d->appIcon, gotFocus || !isLight ? 255 : 92); | 1680 | SDL_SetTextureAlphaMod(d->appIcon, gotFocus || !isLight ? 255 : 92); |
1681 | SDL_RenderCopy( | 1681 | SDL_RenderCopy( |