mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-10 21:19:55 +02:00
Media/Themes/Umami: Use fixed tab width if specified for TabPanelWidget
This commit is contained in:
@@ -1399,6 +1399,9 @@ U0 @umami_tab_panel_repaint_tab(Window* win, TabPanelWidget* widget, I64* src_x,
|
||||
|
||||
I64 tab_text_width = Print2D(NULL, Compositor.theme.font.menu, 0, 0, , , &tab->text);
|
||||
I64 tab_rect_width = T(tab->icon, 20, 0) + tab_text_width + 16;
|
||||
if (widget->size) {
|
||||
tab_rect_width = widget->size;
|
||||
}
|
||||
|
||||
tab->x = x;
|
||||
tab->y = y;
|
||||
|
||||
Reference in New Issue
Block a user