Branch: refs/heads/master Author: Matthew Brush matt@geany.org Committer: Matthew Brush matt@geany.org Date: Sun, 04 Oct 2020 12:33:46 UTC Commit: afc39c287cfa0b48aa0ba14d7ed80f3c716f7188 https://github.com/geany/geany/commit/afc39c287cfa0b48aa0ba14d7ed80f3c716f71...
Log Message: ----------- Remove gtkrc file and related documentation
Modified Paths: -------------- data/geany.gtkrc doc/geany.txt src/libmain.c
Modified: data/geany.gtkrc 71 lines changed, 0 insertions(+), 71 deletions(-) =================================================================== @@ -1,71 +0,0 @@ -# custom GTK2 style for Geany - -# make close button on the editor's tabs smaller -style "geany-close-tab-button-style" { - GtkWidget::focus-padding = 0 - GtkWidget::focus-line-width = 0 - xthickness = 0 - ythickness = 0 -} -widget "*.geany-close-tab-button" style "geany-close-tab-button-style" - -# use monospaced font in search entries for easier reading of regexp (#1907117) -style "geany-monospace" { - font_name = "Monospace" -} -widget "GeanyDialogSearch.*.GtkEntry" style "geany-monospace" -widget "GeanyDialogSearch.*.geany-search-entry-no-match" style "geany-monospace" - -# set red background for GtkEntries showing unmatched searches -style "geany-search-entry-no-match-style" { - base[NORMAL] = "#ffff66666666" - text[NORMAL] = "#ffffffffffff" - base[SELECTED] = "#777711111111" - # try and remove the entry background image on pixmap engine so that our - # background color is visible, and we don't end up with white text on white - # background (workaround for Adwaita 3.20). - engine "pixmap" { - image { - function = FLAT_BOX - detail = "entry_bg" - } - } -} -widget "*.geany-search-entry-no-match" style "geany-search-entry-no-match-style" - -# document status colors -style "geany-document-status-changed-style" { - fg[NORMAL] = "#ffff00000000" - fg[ACTIVE] = "#ffff00000000" -} -style "geany-document-status-disk-changed-style" { - fg[NORMAL] = "#ffff7fff0000" - fg[ACTIVE] = "#ffff7fff0000" -} -style "geany-document-status-readonly-style" { - fg[NORMAL] = "#00007fff0000" - fg[ACTIVE] = "#00007fff0000" -} -widget "*.geany-document-status-changed" style "geany-document-status-changed-style" -widget "*.geany-document-status-disk-changed" style "geany-document-status-disk-changed-style" -widget "*.geany-document-status-readonly" style "geany-document-status-readonly-style" - -# compiler message colors -style "geany-compiler-error-style" { - fg[NORMAL] = "#ffff00000000" - fg[ACTIVE] = "#ffff00000000" -} -style "geany-compiler-context-style" { - fg[NORMAL] = "#7f7f00000000" - fg[ACTIVE] = "#7f7f00000000" -} -style "geany-compiler-message-style" { - fg[NORMAL] = "#00000000D000" - fg[ACTIVE] = "#00000000D000" -} -widget "*.geany-compiler-error" style "geany-compiler-error-style" -widget "*.geany-compiler-context" style "geany-compiler-context-style" -widget "*.geany-compiler-message" style "geany-compiler-message-style" - -# red "Terminal" label when terminal dirty -widget "*.geany-terminal-dirty" style "geany-document-status-changed-style"
Modified: doc/geany.txt 81 lines changed, 2 insertions(+), 79 deletions(-) =================================================================== @@ -452,50 +452,8 @@ by specifying the command line option ``--with-vte-module-path`` to ./configure.
-Defining own widget styles using .gtkrc-2.0 -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -You can define your widget style for many of Geany's GUI parts. To -do this, just edit your ``.gtkrc-2.0`` (usually found in your home -directory on UNIX-like systems and in the etc subdirectory of your -Geany installation on Windows). - -To have a defined style used by Geany you must assign it to -at least one of Geany's widgets. For example use the following line:: - - widget "Geany*" style "geanyStyle" - -This would assign your style "geany_style" to all Geany -widgets. You can also assign styles only to specific widgets. At the -moment you can use the following widgets: - -* GeanyMainWindow -* GeanyEditMenu -* GeanyToolbarMenu -* GeanyDialog -* GeanyDialogPrefs -* GeanyDialogProject -* GeanyDialogSearch -* GeanyMenubar -* GeanyToolbar - -An example of a simple ``.gtkrc-2.0``:: - - style "geanyStyle" - { - font_name="Sans 12" - } - widget "GeanyMainWindow" style "geanyStyle" - - style "geanyStyle" - { - font_name="Sans 10" - } - widget "GeanyPrefsDialog" style "geanyStyle" - - -Customizing Geany's appearance using GTK+ 3 CSS -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Customizing Geany's appearance using GTK+ CSS +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To override GTK+ CSS styles, you can use traditional mechanisms or you can create a file named ``geany.css`` in the user configuration directory @@ -1237,30 +1195,6 @@ colored box. These markers can be removed by selecting the Remove Markers command from the Document menu.
-Change font in search dialog text fields -```````````````````````````````````````` - -All search related dialogs use a Monospace for the text input fields to -increase the readability of input text. This is useful when you are -typing input such as regular expressions with spaces, periods and commas which -might it hard to read with a proportional font. - -If you want to change the font, you can do this easily -by inserting the following style into your ``.gtkrc-2.0`` -(usually found in your home directory on UNIX-like systems and in the -etc subdirectory of your Geany installation on Windows):: - - style "search_style" - { - font_name="Monospace 8" - } - widget "GeanyDialogSearch.*.GtkEntry" style:highest "search_style" - -Please note the addition of ":highest" in the last line which sets the priority -of this style to the highest available. Otherwise, the style is ignored -for the search dialogs. - - Find selection ^^^^^^^^^^^^^^ The *Find Next/Previous Selection* commands perform a search for the @@ -3265,17 +3199,6 @@ same as the ones which can be used with the ANSI C strftime function.
All of these settings can also be changed in the print dialog just before actual printing is done. -On Unix-like systems the provided print dialog offers a print preview. The -preview file is opened with a PDF viewer and by default GTK uses ``evince`` -for print preview. If you have not installed evince or just want to use -another PDF viewer, you can change the program to use in the file -``.gtkrc-2.0`` (usually found in your home directory). Simply add a line -like:: - - gtk-print-preview-command = "epdfview %f" - -at the end of the file. Of course, you can also use xpdf, kpdf or whatever -as the print preview command.
Geany also provides an alternative basic printing support using a custom print command. However, the printed document contains no syntax highlighting.
Modified: src/libmain.c 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -290,7 +290,7 @@ static void main_init(void) osx_ui_init(); #endif
- /* set widget names for matching with .gtkrc-2.0 */ + /* set widget names for matching with GTK CSS */ gtk_widget_set_name(main_widgets.window, "GeanyMainWindow"); gtk_widget_set_name(ui_widgets.toolbar_menu, "GeanyToolbarMenu"); gtk_widget_set_name(main_widgets.editor_menu, "GeanyEditMenu");
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).