diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/labelwidget.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/labelwidget.c b/src/ui/labelwidget.c index 9af0e2e3..690ad1c3 100644 --- a/src/ui/labelwidget.c +++ b/src/ui/labelwidget.c | |||
@@ -253,7 +253,9 @@ static void draw_LabelWidget_(const iLabelWidget *d) { | |||
253 | (iRect){ | 253 | (iRect){ |
254 | /* The icon position is fine-tuned; c.f. high baseline of Source Sans Pro. */ | 254 | /* The icon position is fine-tuned; c.f. high baseline of Source Sans Pro. */ |
255 | add_I2(add_I2(bounds.pos, padding_(flags)), | 255 | add_I2(add_I2(bounds.pos, padding_(flags)), |
256 | init_I2((flags & extraPadding_WidgetFlag ? -2 : -1.20f) * gap_UI, -gap_UI / 8)), | 256 | init_I2((flags & extraPadding_WidgetFlag ? -2 : -1.20f) * gap_UI + |
257 | (deviceType_App() == tablet_AppDeviceType ? -gap_UI : 0), | ||
258 | -gap_UI / 8)), | ||
257 | init_I2(iconPad, lineHeight_Text(d->font)) }, | 259 | init_I2(iconPad, lineHeight_Text(d->font)) }, |
258 | iTrue, | 260 | iTrue, |
259 | isCaution ? uiTextCaution_ColorId | 261 | isCaution ? uiTextCaution_ColorId |
@@ -276,7 +278,9 @@ static void draw_LabelWidget_(const iLabelWidget *d) { | |||
276 | init_String(&str); | 278 | init_String(&str); |
277 | keyStr_LabelWidget_(d, &str); | 279 | keyStr_LabelWidget_(d, &str); |
278 | drawAlign_Text(uiShortcuts_FontId, | 280 | drawAlign_Text(uiShortcuts_FontId, |
279 | add_I2(topRight_Rect(bounds), negX_I2(padding_(flags))), | 281 | add_I2(topRight_Rect(bounds), |
282 | addX_I2(negX_I2(padding_(flags)), | ||
283 | deviceType_App() == tablet_AppDeviceType ? gap_UI : 0)), | ||
280 | flags & pressed_WidgetFlag ? fg : uiTextShortcut_ColorId, | 284 | flags & pressed_WidgetFlag ? fg : uiTextShortcut_ColorId, |
281 | right_Alignment, | 285 | right_Alignment, |
282 | cstr_String(&str)); | 286 | cstr_String(&str)); |