Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: GitHub noreply@github.com Date: Thu, 23 May 2019 15:24:22 UTC Commit: 68cb7d2c0f75aef0e98b3877088473a8618c46a0 https://github.com/geany/geany-plugins/commit/68cb7d2c0f75aef0e98b3877088473...
Log Message: ----------- Merge pull request #870 from LarsGit223/wb-styling
workbench: give sidebar a name to enable dedicated CSS styling
Modified Paths: -------------- workbench/README workbench/src/sidebar.c
Modified: workbench/README 41 lines changed, 41 insertions(+), 0 deletions(-) =================================================================== @@ -166,6 +166,47 @@ will output a message in the message window. The message has the following form:
Could not setup file monitoring for directory: "exampledir". Error: <some error message>
+Styling the sidebar +------------------- + +On linux based systems using GTK3 the workbench sidebar can be styled using CSS. +For general information on how to setup CSS with Geany please see the manual under +https://www.geany.org/manual/current/index.html#customizing-geany-s-appearan.... + +To style the workbench sidebar use the CSS ID *"workbench"*. Here is a small +example:: + + /* Style the label over the treeview. */ + #workbench label { + color: black; + background-color: silver; + border-bottom: 2px solid red; + font-size: 20pt; + } + + /* Style the treeview: the border-color specifies the color of the + treeview lines (if enabled in the workbench settings). */ + #workbench treeview { + color: black; + background-color: linen; + border-color: darkviolet; + font-size: 12pt; + } + + /* The following changes the text and background color for the selected + row in the workbench treeview. */ + #workbench treeview:selected { + color: white; + background-color: red; + } + + /* The following changes the text and background color for a row in the + workbench treeview if the user hovers over it with the mouse pointer. */ + #workbench treeview:hover { + color: white; + background-color: orange; + } + Known issues ============
Modified: workbench/src/sidebar.c 1 lines changed, 1 insertions(+), 0 deletions(-) =================================================================== @@ -1374,6 +1374,7 @@ void sidebar_init(void) GList *focus_chain = NULL;
sidebar.file_view_vbox = gtk_vbox_new(FALSE, 0); + gtk_widget_set_name(sidebar.file_view_vbox, "workbench");
/**** label ****/ sidebar.file_view_label = gtk_label_new (_("No workbench opened."));
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).