Commit Graph

27 Commits

Author SHA1 Message Date
Robin Gareus e74cb666ed
Allow to set transparency to 100%
Despite what the docs say Gtk::HScale(0,1,s) with a step-size
s > 0 has a range [0, 1 - s]. GTKMM does allow for a step-size
of zero, which also works around this issue.
This works because gtkmm sidesteps gtk_hscale_new_with_range() which
would fail with g_return_val_if_fail (step != 0.0, NULL);

The reason for this is that gtkmm creates an Adjustment with a
page-size = step-size:

```
Adjustment* adjustment = manage(new Adjustment(min, min, max, step, 10 * step, step));
```
and `gtk_adjustment_configure` limits the range:
```
value = MIN (value, upper - page_size);
```
2023-02-06 01:27:24 +01:00
Mads Kiilerich f9b3ed0523
gtkmm: use get_color_selection() instead of deprecated Gtk::ColorSelectionDialog::get_colorsel() 2022-04-08 21:11:06 +02:00
Ben Loftis cb156db99d Sort palette colors by name only 2020-01-13 17:12:55 -06:00
Robin Gareus 7850547e12
Theme-manager: sort colors by name (not hue) 2019-09-26 19:39:13 +02:00
Robin Gareus 4050ca5633
Update GPL boilerplate and (C)
Copyright-holder and year information is extracted from git log.

git history begins in 2005. So (C) from 1998..2005 is lost. Also some
(C) assignment of commits where the committer didn't use --author.
2019-08-03 15:53:15 +02:00
Paul Davis 8bb6a5c875 NOOP: remove whitespace 2019-06-06 18:32:13 -06:00
Paul Davis 95f2e4199b adjust h-size of color theme manager "Reset to Defaults" button 2019-06-06 18:32:13 -06:00
Paul Davis 6a051a97b3 limit width of color theme manager theme dropdown 2019-06-06 18:32:13 -06:00
Robin Gareus beb73edf55 Purify libcanvas, remove libardour dependency
A canvas is just a canvas. Move WaveView into its own library.
2017-07-17 21:06:04 +02:00
Robin Gareus 601c317d70 Clean up library inheritance (colors.h, utils.h)
make libwidget independent of libcanvas.
Confine basics to pbd and gtkmm2ext.
2017-07-17 21:06:04 +02:00
Robin Gareus eb1e423b75 Remove <gtkmm.h> include from header files. 2017-07-17 21:06:04 +02:00
Robin Gareus 5c92613698 Separate Ardour UI widgets into dedicated library 2017-07-17 21:06:04 +02:00
Robin Gareus a2bf54c041 re-group preferences part eight and nine of 27 (probably) 2016-12-30 17:04:50 +01:00
Robin Gareus 1d97a0fb3e Consolidate Preferences/OptionEditor 2016-12-29 23:06:15 +01:00
Robin Gareus 5860911eb2 Further preference-dialog re-layout work in progress.. 2016-12-28 22:19:37 +01:00
Robin Gareus f2e00dfe07 Prefs Dialog: consistent headings, spacing, reduce width,.. 2016-12-28 22:19:37 +01:00
Robin Gareus 9b9cb4beaa Pack Color Theme Manager as Box - consistent spacing 2016-12-28 22:19:37 +01:00
Nathan Stewart 114bc97f94 Fixes minor memory leak found in color_theme_manager.cpp:326 2016-10-12 14:50:03 -04:00
Paul Davis 56c4b3c9b0 turn back towards color theme files ALWAYS including the program name. also load both default and user colors (if present) 2016-07-18 11:50:38 -04:00
Paul Davis cf52d6e4b4 enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h 2016-07-14 14:45:23 -04:00
Paul Davis 68b6d0d796 fix some more thinkos related to user color file management 2016-06-21 19:39:13 -04:00
Paul Davis 74f567b789 remove debug output 2016-06-21 19:32:50 -04:00
Paul Davis 120c4bd9f3 fixes for color theme manager's handling of color file choices, notably while running from source tree 2016-06-21 19:26:06 -04:00
Paul Davis 3933475cf2 noop: comment change 2016-06-07 15:01:49 -04:00
Paul Davis 044fe7bf2a header file cleanup/reduction 2016-06-07 14:59:51 -04:00
Paul Davis 9b925b45dc move color theme selector into color tab for preferences 2016-06-07 14:52:24 -04:00
Paul Davis 06c9101f91 first pass at moving color theme management into its own preferences tab 2016-06-07 14:52:24 -04:00