Cosimo Cecchi
19da38b811
colorchooser: factor out a private method to get the checkboard pattern
...
And use it in the color widgets.
2012-02-14 16:37:04 -05:00
Cosimo Cecchi
51c6e8329d
color-swatch: cleanup unused property enum value
2012-02-14 16:37:01 -05:00
Matthias Clasen
92618eb8e2
GtkColorSwatch: Use widget state instead of a custom 'selected'
2012-02-14 16:37:00 -05:00
Matthias Clasen
40974b1463
GtkColorSwatch: Drop an unnecessary field
2012-02-14 16:37:00 -05:00
Matthias Clasen
3a7ed2e7bd
Remove unused variables
2012-02-14 16:36:59 -05:00
Matthias Clasen
bad24bc119
Consistently private headers
...
Add a 'private' suffix to all newly introduced private
headers.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
bcc4186388
color-swatch: remove gtk_color_swatch_set_corner_radii()
...
It's unused now.
2012-02-14 16:36:58 -05:00
Cosimo Cecchi
a9c2a586b1
color-swatch: don't hardcode list-add-symbolic as swatch icon
...
We have that as a property, we should use it.
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
83de34882b
color-swatch: allow styling the "active badge"
...
Instead of calling gtk_render_check() there, just render a symbolic
icon, falling back to a built-in one if the icon is not available.
Also, add a style class for the active badge on the swatch:
"color-active-badge".
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
1ccedc5fa4
color-swatch: use GtkThemingBackground to draw the background
...
This allows e.g. for the corner radii to be styled directly from the
theme.
2012-02-14 16:36:57 -05:00
Cosimo Cecchi
33e54e45be
color-swatch: add a color-light/color-dark style class for intensity
...
Themes might want to set different colors on the badge if the displayed
color is light or dark. Use a style class for this when we set a color
on the swatch.
2012-02-14 16:36:57 -05:00
Matthias Clasen
d7cff0797e
Misc cleanups
2012-02-14 16:36:56 -05:00
Matthias Clasen
c5cfb6e02b
Rework the API a bit
...
Rename get/set_color to get/set_rgba and show_alpha to use_alpha,
to match existing GtkColorButton API and let GtkColorButton implement
GtkColorChooser.
2012-02-14 16:36:55 -05:00
Matthias Clasen
e56adaebea
Only activate on double-click
2012-02-14 16:36:53 -05:00
Matthias Clasen
8178578359
Make alpha optional
2012-02-14 16:36:51 -05:00
Matthias Clasen
8d1565df94
Show alpha in the palette as well
2012-02-14 16:36:51 -05:00
Matthias Clasen
9161119329
No popup menu on the button
2012-02-14 16:36:50 -05:00
Matthias Clasen
021f5e0365
Initial work on a color editor
...
This replaces GtkHSV with a compound widget featuring
a hue slider and an sv-plane, amongst others.
2012-02-14 16:36:49 -05:00
Matthias Clasen
3b6e316e74
Initial cut at implementing a new color chooser
...
This is a partial implementation of
https://live.gnome.org/GnomeOS/Design/Whiteboards/ColorSelection
The new color editor has not been implemented yet.
2012-02-14 16:36:49 -05:00