Mercurial > vim
comparison runtime/doc/gui_x11.txt @ 14668:34fd018452ed
Update runtime files.
commit https://github.com/vim/vim/commit/20aac6c1126988339611576d425965a25a777658
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 2 21:07:30 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 02 Sep 2018 21:15:05 +0200 |
parents | 2f7e67dd088c |
children | 4ee65b4150fd |
comparison
equal
deleted
inserted
replaced
14667:289d3fac3399 | 14668:34fd018452ed |
---|---|
374 Write this in the file ~/.gtkrc and it will be used by GTK+. For GTK+ 2 | 374 Write this in the file ~/.gtkrc and it will be used by GTK+. For GTK+ 2 |
375 you might have to use the file ~/.gtkrc-2.0 instead, depending on your | 375 you might have to use the file ~/.gtkrc-2.0 instead, depending on your |
376 distribution. | 376 distribution. |
377 | 377 |
378 For GTK+ 3, an effect similar to the above can be obtained by adding the | 378 For GTK+ 3, an effect similar to the above can be obtained by adding the |
379 following snippet of CSS code to $XDG_HOME_DIR/gtk-3.0/gtk.css (usually, | 379 following snippet of CSS code to $XDG_HOME_DIR/gtk-3.0/gtk.css (see the next |
380 $HOME/.config/gtk-3.0/gtk.css): | 380 section): |
381 | 381 |
382 For GTK+ 3 < 3.20: > | 382 For GTK+ 3 < 3.20: > |
383 | 383 |
384 .tooltip { | 384 .tooltip { |
385 background-color: #ffffcc; | 385 background-color: #ffffcc; |
405 | 405 |
406 https://developer.gnome.org/gtk3/stable/theming.html | 406 https://developer.gnome.org/gtk3/stable/theming.html |
407 | 407 |
408 GTK+ uses CSS for styling and layout of widgets. In this subsection, we'll | 408 GTK+ uses CSS for styling and layout of widgets. In this subsection, we'll |
409 have a quick look at GTK+ CSS through simple, illustrative examples. | 409 have a quick look at GTK+ CSS through simple, illustrative examples. |
410 | |
411 You can usually edit the config with: > | |
412 vim $HOME/.config/gtk-3.0/gtk.css | |
413 | |
410 | 414 |
411 Example 1. Empty Space Adjustment ~ | 415 Example 1. Empty Space Adjustment ~ |
412 | 416 |
413 By default, the toolbar and the tabline of the GTK+ 3 GUI are somewhat larger | 417 By default, the toolbar and the tabline of the GTK+ 3 GUI are somewhat larger |
414 than those of the GTK+ 2 GUI. Some people may want to make them look similar | 418 than those of the GTK+ 2 GUI. Some people may want to make them look similar |
488 | 492 |
489 Note: Theming can be difficult since it must make every application look | 493 Note: Theming can be difficult since it must make every application look |
490 equally good; making a single application more charming often gets others | 494 equally good; making a single application more charming often gets others |
491 unexpectedly less attractive or even deteriorates their usability. Keep this | 495 unexpectedly less attractive or even deteriorates their usability. Keep this |
492 in mind always when you try improving a theme. | 496 in mind always when you try improving a theme. |
497 | |
498 | |
499 Example 3. border color | |
500 | |
501 To eliminate borders when maximized: > | |
502 | |
503 @define-color bg_color #1B2B34; | |
504 #vim-main-window { | |
505 background-color: @bg_color; | |
506 } | |
493 | 507 |
494 | 508 |
495 Using Vim as a GTK+ plugin ~ | 509 Using Vim as a GTK+ plugin ~ |
496 *gui-gtk-socketid* | 510 *gui-gtk-socketid* |
497 When the GTK+ version of Vim starts up normally, it creates its own top level | 511 When the GTK+ version of Vim starts up normally, it creates its own top level |