9e63e61b16
Implement transitions for radial gradients
...
This was missing in the initial implementation.
2016-01-07 16:30:19 -05:00
a7e2a9d8d3
Don't interpolate between keywords
...
Transitioning between linear gradients like
linear-gradient(to top, yellow, green) and
linear-gradient(to left, yellow, green) was yielding
nonsensical results, with the gradient line jumping around
wildly. Fix this by falling back to stupid image interpolation
for these cases.
2016-01-07 16:13:26 -05:00
cd6ca291bd
Updated Norwegian bokmål translation.
2016-01-07 21:54:51 +01:00
ca6d01a678
GtkCssGadget: Set valid clip values for invisible gadgets
2016-01-07 20:39:37 +01:00
8ecba89991
color swatch: Remove a stray frame
...
When using a gadget, the border is free, no need to call
gtk_render_frame ourselves.
2016-01-07 14:08:26 -05:00
0b96b8a1ee
GtkModelButton: Remove some margins
...
Now that we can use margins from css for this, remove the margins we set
in code and use css instead.
2016-01-07 19:37:18 +01:00
2f61bc1866
GtkModelButton: Remove always-zero variable
2016-01-07 19:37:18 +01:00
bbfec07e06
Clarified the function docs for gtk_css_provider_load_from_data().
...
https://bugzilla.gnome.org/show_bug.cgi?id=760238
2016-01-06 22:42:37 -05:00
10cc35405e
wayland: Only do cursor name fallback for standard names
...
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.
https://bugzilla.gnome.org/show_bug.cgi?id=760141
2016-01-06 14:57:42 -05:00
d9befb9086
x11: Only do cursor name fallback for standard names
...
Always returning a left_ptr if we can't find anything better
broke firefox application-specific fallback for missing cursors.
Keep that working by only doing the fallback for the CSS cursor
names, not for things like hashes.
https://bugzilla.gnome.org/show_bug.cgi?id=760141
2016-01-06 14:57:42 -05:00
b6e11d087c
Add context-menu to the list of standard cursor names
...
Adwaita doesn't have this one, but we are falling to the
default cursor anyway.
2016-01-06 14:57:42 -05:00
d76fb63ba8
Add a test for ltr vs rtl boxes.
...
This tests that horizontal boxes flip their child nodes
according to text direction to maintain the left-to-right
ordering of child nodes for both text directions.
2016-01-06 14:57:42 -05:00
a519a1a928
CSS node tests: Add a way to test rtl vs ltr
...
CSS nodes have a linear sibling relationship; this is supposed
to correspond to left-to-right placement in horizontal arrangements.
This commit explicitly sets the text direction to rtl if the
filename ends in .rtl.ui, so we can test differences in node
tree layout between text directions.
2016-01-06 14:57:42 -05:00
47afccb41b
GtkListBox: Optimize _get_row_at_y a bit
...
Use g_sequence_lookup for a binary search over the rows.
2016-01-06 16:02:59 +01:00
a9d5fa4cfe
GtkListBox: get_row_at_y can return NULL
2016-01-06 16:02:58 +01:00
83fc4d591a
HighContrast: Fix make dist
2016-01-06 15:21:22 +01:00
98080e0289
printing: always propagate Collate value
...
https://bugzilla.gnome.org/show_bug.cgi?id=728344
2016-01-06 14:50:49 +01:00
1fec39ef0b
Visual Studio builds: Use _USE_MATH_DEFINES
...
... to fix the build as some C99 math constant macros are being used, such
as M_SQRT2.
2016-01-06 21:12:19 +08:00
215c28df28
docs: cleanup duplication of words
...
https://bugzilla.gnome.org/show_bug.cgi?id=760148
2016-01-06 09:02:14 +01:00
f32362e82c
HighContrast: Improve search bar appearance
...
Follow the generally white background we use everywhere else.
This is not perfect, we get double borders when the search bar
is shown, as can be seen in gtk3-widget-factory.
2016-01-05 22:33:20 -05:00
aa9095ff72
HighContrast: Fix up action bar styling
...
Since HighContrast is not using different background colors
as much as Adwaita, we need to add borders to prevent things
from running into each other.
2016-01-05 22:22:47 -05:00
643454147c
HighContrast: Drop deprecated style properties
2016-01-05 20:39:16 -05:00
56ca40996d
HighContrast: Add a dark variant
...
This is just a quick experiment, and so I have another theme with
a dark variant to play with.
2016-01-05 19:25:06 -05:00
474d6bec85
HighContrast: Add a missing unit
2016-01-05 16:54:40 -05:00
907fade7d0
HighContrast: Fix sidebar borders
2016-01-05 16:53:03 -05:00
39b76ec082
HighContrast: Fix checkboxes in selected context
...
Set a proper color so checks and radios don't disappear on the
black selection background.
2016-01-05 14:37:22 -05:00
9ebb63c71f
HighConstast: Some fixes for treeview headers
2016-01-05 14:19:58 -05:00
d60fe93937
HighContrast: Keep spinbuttons from resizing on hover
2016-01-05 13:42:57 -05:00
37ab99d1d2
HighContrast: Fix checks and radios
2016-01-05 13:42:57 -05:00
c25b8e25f5
HighContrast: Some menu fixes
2016-01-05 13:42:57 -05:00
fd57a552cf
HighContrast: paned fixes
...
Mostly copied from Adwaita.
2016-01-05 13:42:57 -05:00
0f3f2e7f9c
HighContrast: more combobox fixes
...
Taken from Adwaita.
2016-01-05 10:01:54 -08:00
c4996873dc
docs: try to clarify widget_get_state_flags vs context_get_state
2016-01-05 18:46:56 +01:00
4a9c6777a7
HighContrast: Some combobox fixes
...
Mostly copied from Adwaita.
2016-01-04 23:52:28 -05:00
d17f89f6bf
HighContrast: Fix frame styling
2016-01-04 23:45:13 -05:00
a11c30d0df
HighContrast: fix up color chooser theming
...
Mostly copied from Adwaita.
2016-01-04 23:28:32 -05:00
32177aa03b
HighContrast: Fix up stackswitcher
...
Copy Some of the more recent additions from Adwaita.
2016-01-04 22:08:53 -05:00
c110ffcb1a
HighContrast: No blue spinners
...
Spinners are drawing backgrounds now, so setting a blue
background color is pretty distracting.
2016-01-04 21:35:55 -05:00
f63e8edec6
Make sure icons update on theme change
...
Gadgets don't connect to style-changed for widget nodes, and
GtkImage uses its widget node for the icon helper. The visible
effect of this is that symbolic icons don't change color when
switching to the dark variant of Adwaita.
Fix this by manually invalidating the icon helper.
2016-01-04 21:32:19 -05:00
b387a966ce
widget-factory: Make the notebook action truly circular
...
The sidebar-button class doesn't work out so well for this
since it has horizontal padding.
2016-01-04 21:32:19 -05:00
637ade656a
levelbar: loop over all block gadgets to determine min size
...
Instead of just picking the first. This is because the theme might set a
border on only one of them, like the HighContrast theme does.
2016-01-04 18:14:33 -08:00
183bcb41ec
levelbar: fix parameter confusion
...
We're always interested in the minimum size.
2016-01-04 17:56:50 -08:00
beeefa1629
HighContrast: update to use -gtk-outline-radius
2016-01-04 17:50:24 -08:00
bc66c0c31e
HighContrast: update to use :hover
2016-01-04 17:49:41 -08:00
2780865534
HighContrast: update to use :indeterminate
2016-01-04 17:48:59 -08:00
b2b1b0e238
HighContrast: update to use :disabled
2016-01-04 17:46:43 -08:00
bc020fdeb7
tests: Rework the way foreigndrawing works
...
Instead of the weird PathElt struct, generate a quick-n-dirty parser
that parses CSS selectors into GtkWidgetPath elements.
Based on a patch by Benjamin Otte.
2016-01-04 15:39:48 -05:00
c543712551
Document radial gradient syntax
2016-01-04 13:59:48 -05:00
d9a70bc56a
Add a CSS style test for gradients
...
This mainly just tests that gradients are properly
reproduced by gtk_style_context_to_string.
2016-01-04 13:59:48 -05:00
fcea12f790
Add some tests for radial gradient parsing
...
These are the examples from the CSS spec.
2016-01-04 13:59:24 -05:00