Commit Graph

63 Commits

Author SHA1 Message Date
Paul Davis 8fbf2c3f52 add enum and member var for controlling what kind of tempo editing we are doing
note: this was much harder than it ought to be
2023-04-08 11:44:21 -06:00
Paul Davis 3af3f7d6ee UIConfiguration now "builds" all metadata 2023-01-27 15:13:27 -07:00
Paul Davis 26c09e6de3 continued work on use of Metadata in various Configuration objects (GUI edition) 2023-01-27 15:13:27 -07:00
Robin Gareus ef6803abd1
Add API to force ArdourSans font (for UTF8 symbols) 2022-11-15 21:34:27 +01:00
itmuckel d7f2c35beb Cruft removal 2022-05-06 10:12:17 +02:00
Paul Davis ca22ba77e1 Constification: make Stateful::get_state() const, with all other required const-ness added (GUI) 2022-04-06 21:56:59 -06:00
luz paz 364f2f0788 Fix typos in gtk2_ardour/ directory
Found via `codespell -q 3 -S *.po,./share/patchfiles,./libs -L ba,buss,busses,doubleclick,hsi,ontop,ro,seh,siz,sur,te,trough,ue`
2022-01-26 12:35:38 -05: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
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 5c92613698 Separate Ardour UI widgets into dedicated library 2017-07-17 21:06:04 +02:00
Robin Gareus b976bf8986 NO-OP whitespace & foratting of header files 2017-07-01 21:19:56 +02:00
John Emmas 24699d3be4 Changes needed for building Tim's new 'string_convert' stuff with MSVC (gtk2_ardour) 2017-04-19 17:25:53 +01:00
Tim Mayberry e7a23eaaa8 Use snprintf instead of std::stringstream when converting color values to strings
std::ostream/stringstream will use the current locale to determine the numeric
formatting. If the locale uses grouping then thousands separators will be
inserted in the output which produces an invalid color string in
UIConfiguration::reset_gtk_theme() and when converting colors to strings in
UIConfiguration::store_color_theme()

This has not been a problem so far because it appears that LocaleGuard does not
reset the LC_NUMERIC value for the global C++ locale. So if a LocaleGuard is
created at any time before these functions are called(even if it goes out of
scope) the numeric formatting used by std::streams will use the "C" locale
formatting facets.
2017-04-19 09:36:59 +10:00
Julien "_FrnchFrgg_" RIVAUD 01ac1b5362 Merge set_pango_fontsize() into reset_dpi()
… since reset_dpi() is the only caller.
2016-08-21 15:04:06 +02: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 d3a0355b55 tweaks to how UIConfiguration::color_file_name() operates 2016-06-21 19:26:05 -04:00
Paul Davis 6ec731c5fa rework of color theme file management
Use program-name + version when saving user color files (and search for them)
Preset XML-defined theme name, but use filename in config files (could be wrong).
2016-05-31 15:30:46 -04:00
Paul Davis 4c60a925c0 the return of the theme selector, plus 3 new themes from cooltehno 2016-05-31 15:30:45 -04:00
Robin Gareus 22b07e0233 NOOP, remove trailing tabs/whitespace. 2015-10-05 16:17:49 +02:00
Paul Davis 4dc63966f0 globally remove all trailing whitespace from ardour code base.
Paul Davis was responsible for introducing almost all of this.
2015-10-04 14:51:05 -04:00
Robin Gareus 5d02c47d3a fix clang compilation.
pbd/configuration_variable.h:84:6: error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup

ardour/types.h defines  std::istream& operator>> and must be included prior to pbd/configuration_variable.h
2015-09-17 00:10:50 +02:00
Tim Mayberry 6b019a4953 Move UIConfiguration Singleton into UIConfiguration header
This removes the direct dependence on ardour_ui.h from 39 files
2015-09-16 16:55:17 -04:00
Tim Mayberry 45d487f16e Move ARDOUR_UI::ui_scale into UIConfiguration class 2015-09-16 16:55:17 -04:00
Tim Mayberry fc1e7dbb55 Move DPIReset and ColorsChanged signals into UIConfiguration 2015-09-16 16:55:17 -04:00
Tim Mayberry 2d47183dc9 Move util functions into UIConfiguration as they depend on it anyway 2015-09-16 16:55:17 -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
Paul Davis d854c5d93c move ARDOUR::Configuration and ARDOUR::ConfigVariable into libpbd 2014-12-22 19:48:30 -05: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 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 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 aff8a806a2 more color work, including removing rgba{_p_}_from_style() 2014-12-08 22:02:38 -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 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 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 137425faf1 continue tweaks on the color road 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 a3c378cf62 move utility functions into a dedicated namespace 2014-06-25 21:47:54 +02: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