diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-26 10:26:31 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-26 10:26:31 +0200 |
commit | ce377bd4b703b3fb6ac8ae40b9bbd1ede2e4ca26 (patch) | |
tree | e1a5d7d506a06ba26764b0892e26b0de1875365e /src/ui/widget.c | |
parent | 91a6225d8508db01574d7da2c013cb30d6a87ec8 (diff) |
Visual design improvements
URL input field has a maximum width. Adjusted navbar appearance and margins.
Tuned UI palette and added UI accent color preference.
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 2bdda691..386ba6d6 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -334,7 +334,7 @@ void arrange_Widget(iWidget *d) { | |||
334 | iWidget *child = as_Widget(c.object); | 334 | iWidget *child = as_Widget(c.object); |
335 | if (isCollapsed_Widget_(child)) { | 335 | if (isCollapsed_Widget_(child)) { |
336 | if (d->flags & arrangeHorizontal_WidgetFlag) { | 336 | if (d->flags & arrangeHorizontal_WidgetFlag) { |
337 | setWidth_Widget_(child, 0); | 337 | setWidth_Widget_(child, 0); |
338 | } | 338 | } |
339 | if (d->flags & arrangeVertical_WidgetFlag) { | 339 | if (d->flags & arrangeVertical_WidgetFlag) { |
340 | setHeight_Widget_(child, 0); | 340 | setHeight_Widget_(child, 0); |
@@ -682,7 +682,7 @@ void drawBackground_Widget(const iWidget *d) { | |||
682 | iPaint p; | 682 | iPaint p; |
683 | init_Paint(&p); | 683 | init_Paint(&p); |
684 | if (d->flags & mouseModal_WidgetFlag) { | 684 | if (d->flags & mouseModal_WidgetFlag) { |
685 | p.alpha = 128; | 685 | p.alpha = 0x60; |
686 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_BLEND); | 686 | SDL_SetRenderDrawBlendMode(renderer_Window(get_Window()), SDL_BLENDMODE_BLEND); |
687 | int fadeColor; | 687 | int fadeColor; |
688 | switch (colorTheme_App()) { | 688 | switch (colorTheme_App()) { |