paint: cleanup

This commit is contained in:
luboslenco
2026-06-08 11:42:44 +02:00
parent 75f65da692
commit 1f27859d9a
51 changed files with 1023 additions and 1023 deletions
+6 -6
View File
@@ -12,10 +12,10 @@ i32 ui_statusbar_width() {
void ui_statusbar_render_ui() {
i32 statush = g_config->layout->buffer[LAYOUT_SIZE_STATUS_H];
if (ui_window(ui_base_hwnds->buffer[TAB_AREA_STATUS], 0, iron_window_height() - statush, ui_statusbar_width(), statush, false)) {
ui->_y += 2;
draw_set_color(ui->ops->theme->SEPARATOR_COL);
draw_filled_rect(0, 0, 1, ui->_window_h);
draw_filled_rect(ui->_window_w - 1, 0, 1, ui->_window_h);
g_ui->_y += 2;
draw_set_color(g_ui->ops->theme->SEPARATOR_COL);
draw_filled_rect(0, 0, 1, g_ui->_window_h);
draw_filled_rect(g_ui->_window_w - 1, 0, 1, g_ui->_window_h);
tab_draw_t_array_t *hwnd_draws = ui_base_hwnd_tabs->buffer[TAB_AREA_STATUS];
ui_handle_t *htab = ui_base_htabs->buffer[TAB_AREA_STATUS];
for (i32 i = 0; i < hwnd_draws->length; ++i) {
@@ -42,8 +42,8 @@ void ui_statusbar_render_ui() {
void ui_statusbar_draw_version_tab(ui_handle_t *htab) {
if (!g_config->touch_ui) {
ui->enabled = false;
g_ui->enabled = false;
ui_tab(ui_base_htabs->buffer[TAB_AREA_STATUS], manifest_version, false, -1, false);
ui->enabled = true;
g_ui->enabled = true;
}
}