paint: cleanup
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user