Commit graph

127 commits

Author SHA1 Message Date
Tim Mayberry
2d47183dc9 Move util functions into UIConfiguration as they depend on it anyway 2015-09-16 16:55:17 -04:00
Robin Gareus
fdcc209354 remove unused variable 2015-09-15 21:21:09 +02:00
Robin Gareus
c6e0c8430f image-surface/software rendering as preference 2015-09-07 13:35:11 +02:00
Paul Davis
48c4ad8004 only use and present the buggy gradient parameter if built with a suitably patched version of Cairo 2015-05-28 13:27:38 -04:00
Paul Davis
173b007779 rearrange and redesign UIConfiguration/ARDOUR_UI APIs to allow correct initialization.
We need to be able to set an environment variable *before* gtk_init() is called, but also to
load the color theme right after gtk_init() and before the rest of the GUI is created.
2015-05-28 12:46:43 -04:00
Ben Loftis
d2fa2450aa use C locale, because POSIX locale is not supported on windows, and operation is undefined. C works on all platforms 2015-01-19 07:29:25 -06:00
Robin Gareus
35537aac69 fix color parsing on 32bit systems 2014-12-22 04:48:32 +01:00
David Robillard
e0cb9efb00 Various color tweaks.
This commit changes some color names, nuke your theme.  This isn't quite ideal
yet, but takes some steps towards where I think things should go aesthetically:

Make automation tracks/regions colors correspond to their parent's type.

Make selected MIDI notes outlined in red like most everything else, and scrap
separate min/mid/max fill colors for selected MIDI notes.

Color automation ghost MIDI notes based on original note color.

Try to kill 90's looking brightish gray gradients in general.
2014-12-16 00:05:45 -05:00
Paul Davis
a5aa2df6fc add localeguard to read floating point values correctly when loading theme modifiers 2014-12-15 13:30:56 -05:00
Paul Davis
8b23001441 add editor to Theme Manager for modifiers 2014-12-15 12:07:05 -05:00
Paul Davis
dc934ab90d Add UIConfiguration::color_mod (colorname, modifiername) to get a modified color 2014-12-15 09:04:41 -05:00
Paul Davis
ef26a862e9 add missing UIConfiguration::modifier() 2014-12-14 23:48:20 -05:00
Paul Davis
83326a06ca basic code to use SVModifier plus one definition in dark.colors 2014-12-14 23:34:59 -05:00
Paul Davis
59f32dc80f remove base color concept from UIConfiguration and ThemeManager.
What used to be "relative colors" (defined relative to base colors) are now defined
in absolute terms.
2014-12-14 16:14:18 -05:00
Paul Davis
48a7a11974 initial pass to replace all UIConfiguration::get_XXXXXX() calls with UIConfiguration::color(name).
IMPORTANT: names have not been downcased and spaced yet, so many colors are not found
2014-12-14 12:27:07 -05:00
Paul Davis
e19e05fc59 hide a lot of color debugging noise 2014-12-12 15:27:32 -05:00
Paul Davis
bd430c2080 allow UIConfiguration::color() to tell caller that it could not find the named color 2014-12-11 17:03:52 -05:00
Paul Davis
0bb8e80f87 more tweaking of color management.
User's own modification to NAME.colors are stored in $CONFIG/my-NAME.colors now.
2014-12-08 22:02:38 -05:00
Paul Davis
9ac551abab another metric ton of color work 2014-12-08 22:02:38 -05:00
Paul Davis
624a86c39d lots more color work, closer and closer to being ready for ... being taken apart again 2014-12-08 22:02:38 -05:00
Paul Davis
74becec17f change GTK rc file system to use just a single file, which is color-neutral.
* packaging scripts need modification
* light theme file left in place to help with possible generation of alternate theme
2014-12-08 22:02:38 -05:00
Paul Davis
aff8a806a2 more color work, including removing rgba{_p_}_from_style() 2014-12-08 22:02:38 -05:00
Paul Davis
acd54f1c58 Revert "new code-level defaults for audio peak meter colors"
This reverts commit 564d2860f85340ea091cfa4d92cb5f84d2a40fb1.
2014-12-07 16:11:24 -05:00
Paul Davis
a5e5c14c77 new code-level defaults for audio peak meter colors 2014-12-07 16:11:24 -05:00
Paul Davis
66f3de615f remove stacktrace 2014-12-07 14:23:24 -05:00
Paul Davis
d425a43b26 fix up various issues with UIConfiguration, saving state, RC file loading etc. 2014-12-07 14:20:17 -05:00
Paul Davis
d7ca81cced remove debug output 2014-12-07 13:44:00 -05:00
Paul Davis
700edbdf39 big strides in color management 2014-12-07 13:12:48 -05:00
Paul Davis
d586289be5 first mostly-working build supporting GTK rethemeing via the Theme Manager 2014-12-07 13:12:48 -05:00
Paul Davis
4bc4cd0e20 save and restore color aliases 2014-12-05 11:17:56 -05:00
Paul Davis
0045891362 part two of remove CANVAS_STRING_VARIABLE (it was replaced by CANVAS_FONT_VARIABLE 2014-12-05 09:26:12 -05:00
Paul Davis
dd49a249ad remove CANVAS_STRING_VARIABLE (it was replaced by CANVAS_FONT_VARIABLE 2014-12-05 09:25:34 -05:00
Paul Davis
2449fc9681 several steps closer to more sane color system 2014-12-05 09:01:55 -05:00
Paul Davis
46ed23116e make new color aliases actually work 2014-12-05 09:01:55 -05:00
Paul Davis
8e54baa65f working compilation for new color code 2014-12-05 09:01:55 -05:00
Paul Davis
140540ef59 variable name change for slightly increased clarity 2014-11-26 18:22:22 +02:00
Paul Davis
137425faf1 continue tweaks on the color road 2014-11-26 18:22:22 +02:00
Paul Davis
ed65c801c5 save base colors (configurable colors) in normal way (code had been removed) 2014-11-26 18:22:22 +02:00
Paul Davis
318a9edab9 massive reworking of color selection implementation 2014-11-26 18:22:22 +02:00
Robin Gareus
5dab88c3fa prepare support for [color] style name postfix 2014-09-07 20:23:49 +02:00
Paul Davis
4880019218 correct the variable used to name the file when loading the default UI config file 2014-09-07 11:53:52 -04:00
Paul Davis
dcf4d7b38a change all GUI config files (GTK RC and our own XML config files) to use product-neutral names
Conflicts:

	gtk2_ardour/ui_config.cc
	gtk2_ardour/ui_default.conf.in
	gtk2_ardour/wscript
2014-09-07 10:25:46 -04:00
Tim Mayberry
cd12698b9c Rename PBD::find_file_in_search_path to just PBD::find_file
saves a bit of typing and not necessary if you look at how it is used.
2014-06-25 12:40:10 -04:00
Paul Davis
01df705f70 change the way font specifications are used in UI config files
If no font family is specified, enforce use of Sans to match GTK behaviour (which we inadvertently relied on, it appears)
2014-06-19 11:18:44 -04:00
Paul Davis
3fa2302173 correct CANVAS_STRING_VARIABLE macro in UIConfiguration constructor 2014-06-13 12:22:39 -04:00
Paul Davis
a50569e787 rename UIConfigVariable as ColorVariable since that is really it should be used for; use ARDOUR::ConfigVariable for everything else in UI config 2014-06-13 12:22:39 -04:00
John Emmas
19bb2b33a8 Merge remote-tracking branch 'remotes/origin/cairocanvas' into windows
Conflicts (hopefully resolved):
	gtk2_ardour/marker.cc
	gtk2_ardour/midi_region_view.h
	gtk2_ardour/region_gain_line.h
	gtk2_ardour/utils.cc
	gtk2_ardour/video_image_frame.cc
	gtk2_ardour/wscript
	libs/backends/jack/wscript
2013-09-21 09:17:25 +01:00
Paul Davis
f47499f157 Use g_random_int instead of ::random for portability 2013-07-11 11:38:46 -04:00
Paul Davis
11becd4a6b properly restore newer (cairo-canvas related) UI config parameters 2013-06-21 17:15:56 -04:00
Tim Mayberry
3959e5bf02 Use std::string and Glib::build_filename in UIConfiguration::save_state
git-svn-id: svn://localhost/ardour2/branches/3.0@12904 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-23 05:09:48 +00:00