diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-16 18:56:01 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-08-16 18:56:01 +0300 |
commit | 69ea47be1cee7298b65db8104f1c88e51554ba48 (patch) | |
tree | bf4cf799be4d9ceacec548edcd1eff30db92d757 /src/ui/sidebarwidget.c | |
parent | 6d8bf2508f5e2af36b61cca42ed68cad26c41d56 (diff) |
Added Pure Black and Pure White themes
Font changes cause window redrawing to pause so document layout doesn’t get an intermediate update with a different width.
Sheets are mouse-modal.
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index de3cfd86..ed2e1fd8 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -530,17 +530,15 @@ static void draw_SidebarWidget_(const iSidebarWidget *d) { | |||
530 | drawCentered_Text(font, | 530 | drawCentered_Text(font, |
531 | iconArea, | 531 | iconArea, |
532 | iTrue, | 532 | iTrue, |
533 | isHover && isPressing ? uiTextPressed_ColorId : uiIcon_ColorId, | 533 | isHover |
534 | ? (isPressing ? uiTextPressed_ColorId : uiIconHover_ColorId) | ||
535 | : uiIcon_ColorId, | ||
534 | "%s", | 536 | "%s", |
535 | cstr_String(&str)); | 537 | cstr_String(&str)); |
536 | deinit_String(&str); | 538 | deinit_String(&str); |
537 | iInt2 textPos = | 539 | iInt2 textPos = |
538 | addY_I2(topRight_Rect(iconArea), (d->itemHeight - lineHeight_Text(font)) / 2); | 540 | addY_I2(topRight_Rect(iconArea), (d->itemHeight - lineHeight_Text(font)) / 2); |
539 | drawRange_Text(font, textPos, fg, range_String(&item->label)); | 541 | drawRange_Text(font, textPos, fg, range_String(&item->label)); |
540 | /*drawRange_Text(font, | ||
541 | addY_I2(textPos, lineHeight_Text(font)), | ||
542 | isHover ? (isPressing ? black_ColorId : cyan_ColorId) : teal_ColorId, | ||
543 | range_String(&item->meta));*/ | ||
544 | } | 542 | } |
545 | unsetClip_Paint(&p); | 543 | unsetClip_Paint(&p); |
546 | pos.y += d->itemHeight; | 544 | pos.y += d->itemHeight; |