Theme improvements (#1382)
commit6b973bc70b6118c1d904d6d21626843b5e70beaa
authorMatthew Brush <mbrush@codebrainz.ca>
Fri, 12 Jan 2018 20:46:50 +0000 (12 12:46 -0800)
committerelextr <elextr@gmail.com>
Fri, 12 Jan 2018 20:46:50 +0000 (13 06:46 +1000)
treeeb513b3804174ff72294262e4b4f02d92c20420c
parent385fff7b270e1b9e4c43c01d7636158fd5cd294a
Theme improvements (#1382)

* Improve GTK+3 theme loading

- Merge geany-3.0.css into geany.css
- Load geany-3.20.css to override if runtime version dictates
- Load geany.css from app->configdir if it exists.

* Add initial documentation for GTK+ CSS theming

* Add geany.css file to the `Tools->Configuration Files` menu

Also mark such config files as changed if they don't already exist to
force the user to save or discard any newly created config files.

* Allow customizing message window using GTK+ themes

* Improve GTK+3 CSS docs a bit

State which classes are meant to be overridden by themes.

* Go back to conditionally loading geany-3.0.css

It can't be merged into geany.css since GTK+ CSS parser doesn't ignore
invalid properties when prefixed with vendor extension (ie. -Gtk).

* Don't mark unedited config files as changed

They probably should be marked as changed since they don't exist on
disk yet, but for the time being leave it how it was.

* Fix misuse of CSS ID vs class in manual

* Minor colour value tweaks

Based on feedback from @b4n
data/geany-3.0.css
data/geany-3.20.css
data/geany.css
data/geany.gtkrc
doc/geany.txt
src/msgwindow.c
src/ui_utils.c