diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-02 21:23:04 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-01-02 21:23:04 +0200 |
commit | e31f1118512282550ba484a591b23638f75d819f (patch) | |
tree | 0bcfc1c805db8784e5670c60f170307f9bda7fd0 /src/ui/sidebarwidget.c | |
parent | 2e856e7f61acba9beed83f80e1304252baad2e98 (diff) |
SidebarWidget: Background color for remote bookmarks
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index e28f86f9..bec6d87a 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -1163,6 +1163,12 @@ static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, | |||
1163 | bg = uiBackgroundUnfocusedSelection_ColorId; | 1163 | bg = uiBackgroundUnfocusedSelection_ColorId; |
1164 | fillRect_Paint(p, itemRect, bg); | 1164 | fillRect_Paint(p, itemRect, bg); |
1165 | } | 1165 | } |
1166 | else if (sidebar->mode == bookmarks_SidebarMode) { | ||
1167 | if (d->icon == 0x2913) { /* TODO: Remote icon; meaning: is this in a folder? */ | ||
1168 | bg = uiBackgroundFolder_ColorId; | ||
1169 | fillRect_Paint(p, itemRect, bg); | ||
1170 | } | ||
1171 | } | ||
1166 | iInt2 pos = itemRect.pos; | 1172 | iInt2 pos = itemRect.pos; |
1167 | if (sidebar->mode == documentOutline_SidebarMode) { | 1173 | if (sidebar->mode == documentOutline_SidebarMode) { |
1168 | const int fg = isHover ? (isPressing ? uiTextPressed_ColorId : uiTextFramelessHover_ColorId) | 1174 | const int fg = isHover ? (isPressing ? uiTextPressed_ColorId : uiTextFramelessHover_ColorId) |