diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-04 09:04:49 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-12-04 09:04:49 +0200 |
commit | c8089179f84a2cabd84a47a800aaadd9af8bd9b8 (patch) | |
tree | 5270a456534b801f1f5fb0c600f9cd34fbbd7a28 /src/ui/documentwidget.c | |
parent | 9fde33bb6f8149cc8dee7ac626b8b56f9f1cd14e (diff) |
Added a second sidebar; removed hover outline
A sidebar on the right is a better solution than a kludgy non-interactive special-purpose outline that appears when hoving the mouse on the document scrollbar.
Diffstat (limited to 'src/ui/documentwidget.c')
-rw-r--r-- | src/ui/documentwidget.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index a6cc8187..0d931080 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -2909,6 +2909,7 @@ static void drawSideElements_DocumentWidget_(const iDocumentWidget *d) { | |||
2909 | iMax(0, scrollMax_DocumentWidget_(d) - value_Anim(&d->scrollY)))), | 2909 | iMax(0, scrollMax_DocumentWidget_(d) - value_Anim(&d->scrollY)))), |
2910 | tmQuoteIcon_ColorId); | 2910 | tmQuoteIcon_ColorId); |
2911 | } | 2911 | } |
2912 | #if 0 | ||
2912 | /* Outline on the right side. */ | 2913 | /* Outline on the right side. */ |
2913 | const float outlineOpacity = value_Anim(&d->outlineOpacity); | 2914 | const float outlineOpacity = value_Anim(&d->outlineOpacity); |
2914 | if (prefs_App()->hoverOutline && !isEmpty_Array(&d->outline) && outlineOpacity > 0.0f) { | 2915 | if (prefs_App()->hoverOutline && !isEmpty_Array(&d->outline) && outlineOpacity > 0.0f) { |
@@ -2964,8 +2965,9 @@ static void drawSideElements_DocumentWidget_(const iDocumentWidget *d) { | |||
2964 | setOpacity_Text(1.0f); | 2965 | setOpacity_Text(1.0f); |
2965 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_NONE); | 2966 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_NONE); |
2966 | } | 2967 | } |
2968 | #endif | ||
2967 | unsetClip_Paint(&p); | 2969 | unsetClip_Paint(&p); |
2968 | } | 2970 | } |
2969 | 2971 | ||
2970 | static void drawPlayers_DocumentWidget_(const iDocumentWidget *d, iPaint *p) { | 2972 | static void drawPlayers_DocumentWidget_(const iDocumentWidget *d, iPaint *p) { |
2971 | iConstForEach(PtrArray, i, &d->visiblePlayers) { | 2973 | iConstForEach(PtrArray, i, &d->visiblePlayers) { |