741bcc9fa4
Abutton: only LMB clicks are “clicks”.
2015-03-17 11:58:59 +01:00
edb86929f5
amend 6aa6c2d
, queue redraw for custom-LED change
2015-03-17 04:02:59 +01:00
6aa6c2d552
AButton: decouple indicator color and active state.
...
If a custom LED color is used, the LED does not
reflect the ExplicitActive state. Hence the
Body Element (if visible) should be used just like
for buttons without LED indicator.
2015-03-17 02:08:41 +01:00
28e4708825
AButton: allow to set custom LED color (for > 2 states)
2015-03-16 19:04:36 +01:00
421d4aae2e
further ardourbutton ellipsis fixes
2015-03-12 12:26:23 +01:00
69dc9451a7
NOOP, add a missing ‘p’
2015-03-11 20:06:41 +01:00
ffa6954875
fixup LED size (font-scaling)..
...
..until there's a better solution.
2014-12-27 18:05:42 +01:00
64fa63212f
move all (G)UI related configuration parameters into UIConfiguration, not RCConfiguration
2014-12-22 13:39:46 -05:00
1fa9edd872
insensitive buttons should be shaded towards the gtk_background color, not hardcoded gray
2014-12-17 14:17:32 -06:00
c2025a62a6
derive ArdourButton LED inactive color from active color, rather than requiring explicit definition
2014-12-12 11:48:45 -05:00
75e6a36d8e
fall back on "generic button" colors in ArdourButton if specifically named fills + LED colors are not defined
2014-12-11 17:04:21 -05:00
9ac7ddb31d
remove all explicit button text colors; use contrasting_text_color() instead.
...
Also, use a slightly off-white rather than pure white, which should really be configurable
2014-12-07 13:55:40 -05:00
318a9edab9
massive reworking of color selection implementation
2014-11-26 18:22:22 +02:00
00f604019d
add ::set_layout_font (const Pango::FontDescription&) to ArdourButton
2014-10-21 17:25:50 -04:00
9204b2837e
ArdourButton should call the focus handler of CairoWidget from its button press event
2014-09-16 12:45:21 -04:00
df19c576c7
fix a bunch of memory leaks
2014-09-11 03:04:11 +02:00
3132a184f2
have another go at vertical text alignment
2014-09-09 02:26:58 +02:00
ca5eea2056
add an easy way to debug button sizes
2014-09-09 01:29:47 +02:00
78b2b0d28e
tweak button text y-alignment
2014-09-09 00:43:32 +02:00
cb07f0f99b
yet another button tweak..
2014-09-07 20:23:49 +02:00
6745aa6e52
backwards compat with old gtk
2014-09-06 21:20:06 +02:00
8bc872614e
optimize ArdourButton
2014-09-06 12:50:18 +02:00
4912409a8d
gtk style related fixes:
...
* remove some old/unused styles
* fix plugin-ui button (hover color when active)
* consistent style for route buttons
(and related ArdourButton updates)
2014-09-06 12:49:57 +02:00
aa769c9096
fix ArdourButton initialization
2014-09-06 12:48:21 +02:00
dfecb06946
optimize button expose/resize
2014-09-06 03:22:31 +02:00
a07dc44b4d
remove pixel based Button LED diameter setting
...
Diameter is calculated depending on font-scaling.
Besides, all explicit calls simply set the default
value, anyway. If some API is needed in the future,
it should set the diameter in [em].
2014-09-06 02:08:59 +02:00
6f30c1fddb
optimize button pattern cache
...
We really should statically cache patterns
as done in PixFader and Meters (Cairo's cache is
not nearly large enough)
2014-09-06 02:04:59 +02:00
fb473475c3
remove cruft
2014-09-06 00:42:10 +02:00
4a00bdf04a
fundamentally change ArdourButton PangoLayout handling
...
This fixes issues where button text was set during static
initialization where the widget style was not yet available,
and a lot of related issues where the text was set
before style.
2014-09-06 00:41:56 +02:00
dcb495676f
never change button element name.
...
changing the name overrides font style.
2014-09-05 23:44:30 +02:00
42ef3cab32
no more button text position rounding
...
For all non-grouped buttons, size request takes
care of assigning a proper geometry.
2014-09-05 23:43:09 +02:00
50d3afd965
further button size polish
2014-09-05 17:40:34 +02:00
f08b67da8c
fix typo
2014-09-04 23:26:14 +02:00
4030fe2b66
and some more button px tweaks
2014-09-04 23:16:18 +02:00
86ffa35f84
separate button text-height -> button-height factor, bump to 1.3[em]
2014-09-04 20:11:45 +02:00
d717a0680a
properly centered text..
...
..at the risk of blurring some text with
some fonts when the text is shifted by 0.5px.
2014-09-04 18:12:46 +02:00
dc4ee8196f
fix LED active area
2014-09-04 15:06:42 +02:00
98404c6e62
ardour button sizes, now [em] based.
2014-09-04 02:24:37 +02:00
0d4460b736
merge fix
2014-09-03 15:26:33 -05:00
a9d19c9720
actively recording track-arm button is red, not pink
2014-09-03 15:26:33 -05:00
11a376031f
amend a99bd289
(button x-axis padding)
2014-09-03 22:17:25 +02:00
a99bd28950
add "close/cross" special button
2014-09-03 22:07:25 +02:00
a2a399d6f9
tweak button size request
2014-09-03 22:06:45 +02:00
ba3eb177c7
clean up rec-en circle math and limit the max radius of it
2014-09-03 22:05:53 +02:00
0ea1238479
ask TAV buttons to have square proportions
2014-09-03 11:56:31 -05:00
e9ff578f3a
amend prev commit (Ardour button radii)
2014-09-03 15:26:54 +02:00
b0660b3e7d
Update Ardour Button radii.
...
This is effectively a noop. Decrease default radius,
only add to radius (for outline), never subtract to avioid
negative numbers.
2014-09-03 15:21:19 +02:00
d7ff2b87fb
update rec-en circle drawing, add tape-mode
2014-09-03 01:55:57 +02:00
930e6eecf8
stroke black circle on top of rec circle
2014-09-02 15:57:08 -05:00
bc16da5b5a
micro tweaks to ArdourButton corners
2014-09-02 15:16:37 -05:00
1592d04828
one off, special case rec-en button for now. (circle may need tweaking)
...
In the long run we want a class hierarchy:
CairoWidget
-> ArdourWidget
-> ArdourLabel
-> ArdourButton
-> SpecialArdourButton(s)
2014-09-02 20:43:15 +02:00
29b7cb4a05
ArdourButton: prepare for [em] based padding
2014-09-02 19:23:18 +02:00
936cb05989
update dropdown triangle
2014-08-30 18:26:03 +02:00
f5533213c0
fix some compiler warnings
2014-08-30 02:26:36 +02:00
926d4eb36e
remove cruft
2014-08-30 01:43:10 +02:00
4efa0fd77c
ArdourButton align text to full pixels
2014-08-30 01:43:10 +02:00
bf13bf6385
red-border selection for tracks, regions, and processors. requesting comments
2014-08-29 17:16:32 -05:00
65e1760446
Ardour button, proper cairo fill+stroke px alignments
...
rounded rectangles are cairo_arc() path,
for line strokes, offset by .5.
This patch also includes two small related style tweaks:
* Gtkmm2ext::Selected line color & thickness
* 'grabbed' line color & thickness
2014-08-29 23:02:35 +02:00
78b9f65632
explicit Button inactive state.
...
Ideally large parts of ArdourButton would become ArdourLabel,
which in turn is used by ArdourButton
2014-08-29 21:08:49 +02:00
083620beb8
ArdourButton: suppress visible response if no action is defined.
...
This fixes issues where the button is used as Label
(currently track-numbers and meterbridge track-name)
2014-08-29 20:20:37 +02:00
39e2223fee
yet another ArdourButton action tweak
2014-08-28 15:29:18 -05:00
a4bda23bba
remove offset from icons when button is pushed
2014-08-28 14:29:49 -05:00
7306568634
More fixes to ArdourButton actions.
...
Optionally allow events to fallthrough to parents, in particular for the DnDVBox case.
Also allow the number_label to operate as a track selector.
2014-08-28 14:25:19 -05:00
3f297f7dab
Fix ArdourButton event sequence.
...
Always give ArdourButton a chance to handle Press or Release events if you override them.
This allows ArdourButtons to do the "Pressed" animation
And it now correctly eats the event so button clicks don't select the channelstrip.
2014-08-28 10:31:57 -05:00
3cc19c2cce
brighten post-fader redirects, and change redirect leds to blue
2014-08-28 08:58:26 -05:00
e7a15027e8
refactor flat_buttons into cairowidget, and add a canvas-like convenience function for setting cairo color with a Gtk::Color
2014-08-27 10:55:01 -05:00
74f313dd6b
Rationalize ArdourButton and lots of associated theming issues.
...
ArdourButtons now have a "pushed" animation.
The gradient is now implemented in the button, rather than providing 2 colors in the theme, which was burdensome.
Lots of code cleanup in ArdourButton. Removed several unnecessary flags.
Refactor more stuff into route_ui.
2014-08-22 11:51:20 -05:00
f3d524deb7
Yet another attempt to standardize button heights.
...
Use the same string for all ArdourButtons to define the height.
Height can still vary if you use a different font, though.
2014-08-13 10:57:04 -05:00
61c66afd4c
Revert previous select-strips-under-mouse behavior
...
However, keep the path for deletions in the editor-mixer via _entered_mixer_strip
TODO: if nothing was deleted, assume the user was trying to delete something in the editor instead
Show selected plugins by a red border
TODO: more work on the selection model for plugins and mixer strips
2014-07-24 11:28:31 -05:00
fc305cb217
if a button has an icon, dont draw text as well
2014-07-14 10:28:50 -05:00
492c933a69
fix the visible_tracks_selector to show * when user tweaks a track height. various experimental tweaks to visible_tracks_selector and a new zoom_preset_selector for Mixbus.
2014-07-14 10:08:55 -05:00
381b6848fc
repair ardour-button "fixed color mode"
2014-07-06 19:56:53 +02:00
a3c378cf62
move utility functions into a dedicated namespace
2014-06-25 21:47:54 +02:00
b17ec0c43d
tweak ArdourButton focus outline
2014-06-15 13:24:40 +02:00
bb2970e5e9
allow ardour button to handle focused keyboard events
2014-06-14 00:22:32 +02:00
4c2e846126
the FlatFace element is no longer relevant. instead it was being used for an inset jeweled look. changed name to match
2014-03-26 11:37:28 -05:00
cc93a9f3dd
add needed separator
2014-03-23 21:22:33 -05:00
harrison
b9708d5f6b
New theme for editor window using ArdourMenu
2014-03-23 18:11:42 -05:00
ab44e41dfd
change the meters into CairoWidget, add expose_area to CairoWidget::render()
2014-03-20 23:50:40 +01:00
7bb305b8ae
separate ArdourButton::set_colors() and ArdourButton::build_patterns()
2014-03-06 09:53:38 -05:00
f9dbc28086
add ::on_name_changed() to ArdourButton, to use recently added ::on_name_changed() in CairoWidget
2014-03-06 09:49:00 -05:00
4a915ee541
Add ArdourButton::set_fixed_colors() (equivalent to ::set_bg_colors() in Valeriy's original changes)
2014-03-06 08:05:33 -05:00
b360274e34
revert 29b1e706dd
and then redo separation of ArdourButton::set_colors() from ArdourButton::build_patterns.
...
More to come
2014-03-05 17:51:51 -05:00
895084a806
fix semantics of button press -> leave button -> button release, to match typical GUI toolkits
2014-02-28 17:17:23 -05:00
29b1e706dd
some changes to ArdourButton to allow custom colors to be set (e.g. based on track colors), via Valeriy
2014-02-14 15:32:30 -05:00
2a734a2d85
fix ardour-button text bleed
2014-01-04 15:05:45 +01:00
37522a2f5e
revert part of 4091ff175c
that caused window/sizing chaos. silly paul
2013-10-12 15:37:55 -04:00
4091ff175c
1 bug fix plus padding control for ArdourButton
2013-10-12 14:56:57 -04:00
2b53ac2e31
amend cb7bcb6d
- locked-solo button style
2013-07-11 02:31:30 +02:00
03fa5fcd3a
ardour-button - fix test+LED margin
2013-07-10 22:34:39 +02:00
94fbfb9658
left/bottom align of labels in meterbridge
2013-07-10 15:27:08 +02:00
0276b1f69a
ardour-button: allow to rotate text
2013-07-10 15:27:06 +02:00
faa729afb8
improve button drawing when "implicit active uses solid color" tweak is on, and improve on the so-called "pepto-bismol" colors used for rec-enable buttons
...
git-svn-id: svn://localhost/ardour2/branches/3.0@13656 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-13 14:54:29 +00:00
6e337459a9
add a new Tweak to ArdourButton that makes ImplicitActive state use a solid color (the "led active" color), and adjst rec-enable buttons to use pink (like ardour2) when in this state (which means rec-enabled but not recording). and yes, this means that you can't use ImplicitUsesSolidColor with a button that also uses an LED - acceptable limitation
...
git-svn-id: svn://localhost/ardour2/branches/3.0@13645 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-12 02:22:12 +00:00
Ben Loftis
b3ab885061
fix flat button colors
...
git-svn-id: svn://localhost/ardour2/branches/3.0@13614 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-07 17:00:49 +00:00
Ben Loftis
92e5a13fd4
several theme changes. changed drawing of rounded_rectangle to be more correct. operation and feel should be more consistent. rec-mute-solo buttons are now dull until enabled. this might be debatable. otherwise if it looks weird, try loading Window->Theme Manager and clicking Restore Defaults
...
git-svn-id: svn://localhost/ardour2/branches/3.0@13611 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-12-06 20:48:44 +00:00
14f11a9e63
some tweaks to make narrow mixer strips actually narrow
...
git-svn-id: svn://localhost/ardour2/branches/3.0@13547 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-26 22:05:45 +00:00
Ben Loftis
6b6ef35f3e
new button look
...
git-svn-id: svn://localhost/ardour2/branches/3.0@13511 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-11-16 19:27:39 +00:00
930f9a34c1
use the theme manager dialog to provide control over flat button option, and turn it off by default
...
git-svn-id: svn://localhost/ardour2/branches/3.0@12382 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-22 16:36:59 +00:00
a796853f99
introduce flat button option,which right now is on all the time. GUI nit-pickers, do your best
...
git-svn-id: svn://localhost/ardour2/branches/3.0@12358 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-21 12:31:05 +00:00