summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-23 18:22:57 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-23 18:22:57 +0200
commit95859c2b260abefed2b8c4fdf1be43887e6e053c (patch)
treed95fc7bc3b498573479e6e55ec6ae74ed5bd9acb /src/ui
parent5b2fdd6797c8f82055bea58e1d9eb23133362425 (diff)
SidebarWidget: Hover state colors
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/sidebarwidget.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c
index 14d7a373..6397528e 100644
--- a/src/ui/sidebarwidget.c
+++ b/src/ui/sidebarwidget.c
@@ -2047,14 +2047,19 @@ static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect,
2047 fg, 2047 fg,
2048 "%s%s%s%s%s%s%s%s", 2048 "%s%s%s%s%s%s%s%s",
2049 isGemini ? "" : cstr_Rangecc(parts.scheme), 2049 isGemini ? "" : cstr_Rangecc(parts.scheme),
2050 isGemini ? "" : isAbout ? ":" : "://", 2050 isGemini ? ""
2051 : isAbout ? ":"
2052 : "://",
2051 escape_Color(isHover ? (isPressing ? uiTextPressed_ColorId 2053 escape_Color(isHover ? (isPressing ? uiTextPressed_ColorId
2052 : uiTextFramelessHover_ColorId) 2054 : uiTextFramelessHover_ColorId)
2053 : uiTextStrong_ColorId), 2055 : uiTextStrong_ColorId),
2054 cstr_Rangecc(parts.host), 2056 cstr_Rangecc(parts.host),
2055 escape_Color(fg), 2057 escape_Color(fg),
2056 cstr_Rangecc(parts.path), 2058 cstr_Rangecc(parts.path),
2057 !isEmpty_Range(&parts.query) ? escape_Color(uiAnnotation_ColorId) : "", 2059 !isEmpty_Range(&parts.query) ? escape_Color(isPressing ? uiTextPressed_ColorId
2060 : isHover ? uiText_ColorId
2061 : uiAnnotation_ColorId)
2062 : "",
2058 !isEmpty_Range(&parts.query) ? cstr_Rangecc(parts.query) : ""); 2063 !isEmpty_Range(&parts.query) ? cstr_Rangecc(parts.query) : "");
2059 } 2064 }
2060 iEndCollect(); 2065 iEndCollect();