Mercurial > vim
comparison src/gui.c @ 18078:5ae41d0ea397 v8.1.2034
patch 8.1.2034: dark them of GTK 3 not supported
Commit: https://github.com/vim/vim/commit/50bf7ce0c9f8c3ede2d1a02c734beba9d5a0504e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 15 13:17:00 2019 +0200
patch 8.1.2034: dark them of GTK 3 not supported
Problem: Dark them of GTK 3 not supported.
Solution: Add the "d" flag in 'guioptions'. (Jonathan Conder, closes https://github.com/vim/vim/issues/4934)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Sep 2019 13:30:04 +0200 |
parents | 59f8948b7590 |
children | 34d5cd432cac |
comparison
equal
deleted
inserted
replaced
18077:9011f5cb5a0c | 18078:5ae41d0ea397 |
---|---|
3423 * in p_go. | 3423 * in p_go. |
3424 */ | 3424 */ |
3425 void | 3425 void |
3426 gui_init_which_components(char_u *oldval UNUSED) | 3426 gui_init_which_components(char_u *oldval UNUSED) |
3427 { | 3427 { |
3428 #ifdef FEAT_GUI_DARKTHEME | |
3429 static int prev_dark_theme = -1; | |
3430 int using_dark_theme = FALSE; | |
3431 #endif | |
3428 #ifdef FEAT_MENU | 3432 #ifdef FEAT_MENU |
3429 static int prev_menu_is_active = -1; | 3433 static int prev_menu_is_active = -1; |
3430 #endif | 3434 #endif |
3431 #ifdef FEAT_TOOLBAR | 3435 #ifdef FEAT_TOOLBAR |
3432 static int prev_toolbar = -1; | 3436 static int prev_toolbar = -1; |
3493 gui.which_scrollbars[SBAR_RIGHT] = TRUE; | 3497 gui.which_scrollbars[SBAR_RIGHT] = TRUE; |
3494 break; | 3498 break; |
3495 case GO_BOT: | 3499 case GO_BOT: |
3496 gui.which_scrollbars[SBAR_BOTTOM] = TRUE; | 3500 gui.which_scrollbars[SBAR_BOTTOM] = TRUE; |
3497 break; | 3501 break; |
3502 #ifdef FEAT_GUI_DARKTHEME | |
3503 case GO_DARKTHEME: | |
3504 using_dark_theme = TRUE; | |
3505 break; | |
3506 #endif | |
3498 #ifdef FEAT_MENU | 3507 #ifdef FEAT_MENU |
3499 case GO_MENUS: | 3508 case GO_MENUS: |
3500 gui.menu_is_active = TRUE; | 3509 gui.menu_is_active = TRUE; |
3501 break; | 3510 break; |
3502 #endif | 3511 #endif |
3525 | 3534 |
3526 if (gui.in_use) | 3535 if (gui.in_use) |
3527 { | 3536 { |
3528 need_set_size = 0; | 3537 need_set_size = 0; |
3529 fix_size = FALSE; | 3538 fix_size = FALSE; |
3539 | |
3540 #ifdef FEAT_GUI_DARKTHEME | |
3541 if (using_dark_theme != prev_dark_theme) | |
3542 { | |
3543 gui_mch_set_dark_theme(using_dark_theme); | |
3544 prev_dark_theme = using_dark_theme; | |
3545 } | |
3546 #endif | |
3530 | 3547 |
3531 #ifdef FEAT_GUI_TABLINE | 3548 #ifdef FEAT_GUI_TABLINE |
3532 /* Update the GUI tab line, it may appear or disappear. This may | 3549 /* Update the GUI tab line, it may appear or disappear. This may |
3533 * cause the non-GUI tab line to disappear or appear. */ | 3550 * cause the non-GUI tab line to disappear or appear. */ |
3534 using_tabline = gui_has_tabline(); | 3551 using_tabline = gui_has_tabline(); |