summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-07 14:26:16 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-07 14:26:16 +0200
commit1c15be5ee3672a5e066be718fa35a01111c7ec9a (patch)
treebaf7c2c59daae8d8544b19535c144818f8f1b238 /src/ui
parent9f192d380b98c05a5edd04a99d868875ea342e94 (diff)
DocumentWidget: Footer button background color
With the white theme(s), the footer buttons were not prominent enough.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index c4d7c56a..94a58a35 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1200,7 +1200,6 @@ static void makeFooterButtons_DocumentWidget_(iDocumentWidget *d, const iMenuIte
1200 resizeWidthOfChildren_WidgetFlag | arrangeHeight_WidgetFlag | 1200 resizeWidthOfChildren_WidgetFlag | arrangeHeight_WidgetFlag |
1201 fixedPosition_WidgetFlag | resizeToParentWidth_WidgetFlag, 1201 fixedPosition_WidgetFlag | resizeToParentWidth_WidgetFlag,
1202 iTrue); 1202 iTrue);
1203 //setBackgroundColor_Widget(d->footerButtons, tmBackground_ColorId);
1204 for (size_t i = 0; i < count; ++i) { 1203 for (size_t i = 0; i < count; ++i) {
1205 iLabelWidget *button = addChildFlags_Widget( 1204 iLabelWidget *button = addChildFlags_Widget(
1206 d->footerButtons, 1205 d->footerButtons,
@@ -1210,11 +1209,8 @@ static void makeFooterButtons_DocumentWidget_(iDocumentWidget *d, const iMenuIte
1210 setPadding1_Widget(as_Widget(button), gap_UI / 2); 1209 setPadding1_Widget(as_Widget(button), gap_UI / 2);
1211 checkIcon_LabelWidget(button); 1210 checkIcon_LabelWidget(button);
1212 setFont_LabelWidget(button, uiContent_FontId); 1211 setFont_LabelWidget(button, uiContent_FontId);
1212 setBackgroundColor_Widget(as_Widget(button), uiBackgroundSidebar_ColorId);
1213 } 1213 }
1214// if (deviceType_App() == phone_AppDeviceType) {
1215 /* Footer buttons shouldn't be under the toolbar. */
1216// addChild_Widget(d->footerButtons, iClob(makePadding_Widget(height_Widget(d->phoneToolbar))));
1217// }
1218 addChild_Widget(as_Widget(d), iClob(d->footerButtons)); 1214 addChild_Widget(as_Widget(d), iClob(d->footerButtons));
1219 arrange_Widget(d->footerButtons); 1215 arrange_Widget(d->footerButtons);
1220 arrange_Widget(w); 1216 arrange_Widget(w);