Cosimo Cecchi
ce6cd49475
menuitem: port arrow gadget to GtkBuiltinIcon
...
Saves a lot of code.
2015-12-19 21:22:37 -08:00
Cosimo Cecchi
4ec99db368
checkmenuitem: deprecate indicator-size style property
...
We can now use min-width/min-height.
2015-12-19 21:22:37 -08:00
Cosimo Cecchi
5a87b5bbce
menuitem: deprecate toggle-spacing style property
...
We can move this to just use the actual GtkCssGadget of the menu item.
2015-12-19 21:21:16 -08:00
Cosimo Cecchi
3af5c83cd3
checkmenuitem: use a gadget for the check indicator
...
This will make margins and other CSS properties work correctly on the
indicator.
2015-12-19 21:21:16 -08:00
Cosimo Cecchi
0e24d6cd85
theme: fix menu check/radio styling
...
This is a leftover from the CssNode port of GtkCheckMenuItem and
GtkRadioMenuItem.
2015-12-19 21:21:16 -08:00
Cosimo Cecchi
7959c3fb6e
menuitem: deprecate arrow-scaling style property
...
With this, we can also remove the custom measure function of the arrow
gadget.
2015-12-19 21:21:16 -08:00
Cosimo Cecchi
2d5d7d8cf2
menuitem: convert arrow rendering to GtkCssGadget
...
This also deprecates the arrow-spacing style property, which can be now
replaced with a simple margin.
2015-12-19 21:21:16 -08:00
Cosimo Cecchi
f49a5bf116
menuitem: deprecate width-chars style property
...
Instead, we can just set min-width.
2015-12-19 21:21:16 -08:00
Matthias Clasen
f792d20507
statusbar: Deprecate style properties
...
We were not really using the shadow-type style property anyway,
so lets just deprecate it. Themes can directly theme the frame.
2015-12-19 23:53:31 -05:00
Matthias Clasen
57dd855d10
Adwaita: Drop some deprecated style properties
...
These can now be replaces with min-width/min-height.
2015-12-19 23:24:27 -05:00
Matthias Clasen
f0fba02dca
Adwaita: Try harder to fix arrow rendering
...
Fiddle with specificity to keep hovered modelbutton arrows
from rendering background.
2015-12-19 20:46:26 -05:00
Matthias Clasen
0b7226e96e
Adwaita: Fix treeview headers
...
The borders went missing on these, at some point.
https://bugzilla.gnome.org/show_bug.cgi?id=759567
2015-12-19 17:34:21 -05:00
Matthias Clasen
bca4755228
modelbutton: Use a builtin icon for the arrow
...
No need to do this manually.
2015-12-19 14:53:57 -05:00
Matthias Clasen
a3fd5a010b
Simplify actionbar
...
We don't need a frame widget here, just render a top border on the
box.
2015-12-18 22:57:16 -05:00
Matthias Clasen
b90fa7dcd1
Adwaita: fix action bar styling
...
Make action bar buttons have some padding again.
2015-12-18 22:37:57 -05:00
Matthias Clasen
576028bdec
frame: Convert to gadgets
...
As part of this conversion, remove the hardcoded padding around
the label.
Unfortunately, we cannot use the main gadget for drawing the frame
decoration, since we want to draw a custom border instead of the
stock css border that gadgets insist on drawing for us. Therefore,
add an extra gadget with name border and use it just for rendering
the frame.
2015-12-16 15:15:18 -05:00
Matthias Clasen
bb67a06bd6
check button: Deprecate and ignore ::indicator-spacing
...
This can be done just as well with CSS margins, so
do that instead for Adwaita.
2015-12-16 12:27:53 -05:00
Matthias Clasen
86ecdc7a44
model button: Document iconic layout
...
Document how the CSS nodes look if iconic is TRUE. Add
a .model style class for this case and use it in Adwaita.
2015-12-16 11:37:49 -05:00
Matthias Clasen
152326bd24
paned: Allocate the handle input area properly
...
Drop the margin misuse and use the border allocation of the
handle gadget. We use negative margins to make the border allocation
larger without pushing the paned children out.
2015-12-15 21:59:04 -05:00
Matthias Clasen
9b408d911a
shortcuts: Fix the circular stack switcher
...
The buttons need to set min-width now, to make this work.
2015-12-15 19:41:05 -05:00
Matthias Clasen
c2fc1cff32
paned: Convert to gadgets
2015-12-15 08:41:16 -05:00
Matthias Clasen
48e543fbc8
Adwaita: Update separator toolitem styling
...
Don't set a background for these, since we now draw background.
2015-12-15 08:41:16 -05:00
Matthias Clasen
e2bc77b9af
Adwaita: Remove nonsensical expander theming
...
No red backgrounds, please.
2015-12-15 08:41:16 -05:00
Matthias Clasen
f7466b236a
stackswitcher: Stop hardcoding 100px width
...
We can now set a min-width in the theme, so we don't have to
hardcode the size request here anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=726371
2015-12-15 08:41:16 -05:00
Matthias Clasen
0f7dbc3bbd
Adwaita: No padding for image buttons in popovers
2015-12-15 08:41:16 -05:00
Matthias Clasen
ff9f3c108f
Adwaita: Update color swatch styling
...
The adjustments here are provisional and need an artistic eye.
2015-12-15 08:41:16 -05:00
Matthias Clasen
20e1ff44e8
Adwaita: Update separator styling
...
Separators no longer draw a line with the foreground color,
but instead just draw background.
2015-12-15 08:41:16 -05:00
Lapo Calamandrei
bb16ba7e31
Adwaita: menu color change on the dark variant only
2015-12-11 21:08:53 +01:00
Lapo Calamandrei
191b9d84fa
Adwaita: make menu bg color the same as popovers
...
fixes https://bugzilla.gnome.org/show_bug.cgi?id=759260
2015-12-09 18:56:38 +01:00
Lapo Calamandrei
d266151fee
Adwaita: another try at color tweakings...
2015-12-09 17:43:40 +01:00
Lapo Calamandrei
f51dfb7af8
Adwaita: some more color tweaks and sass simplification
2015-12-09 17:38:38 +01:00
Lapo Calamandrei
07506a9088
Adwaita: fix popover styling
...
...in the process simplified the touch-selection styling, check
and radios not fixed there since I'm going to add proper osd assets
for those (istead of forcing the dark variant assets there as before).
2015-12-09 14:54:15 +01:00
Matthias Clasen
88c4d06973
accel cellrenderer: Fix rendering
...
We were getting the "New Accelerator" text mixed with the
content of the underlying cell, since plain labels don't
have a background. Go back to putting the label in selected
state, and fix the theme to render that white-on-blue. This
was lost when we switched to using a selection sub-node.
2015-12-07 07:04:43 -05:00
Lapo Calamandrei
830b6f10a1
Adwaita: simpler active switch background
...
...removing the progressbar_fill mixin in the process.
2015-12-05 17:56:32 +01:00
Lapo Calamandrei
8f2cd874f1
Adwaita: first stab at some visual updates
2015-12-05 17:56:32 +01:00
Lionel Landwerlin
55e06e5d52
adwaita: fix property spelling mistake
...
https://bugzilla.gnome.org/show_bug.cgi?id=759048
2015-12-04 21:04:06 +00:00
Lapo Calamandrei
5cb06a30a0
Adwaita: added back progressbar.osd style
2015-12-04 19:04:17 +01:00
Lapo Calamandrei
c64452c29d
Adwaita: fix scales with marks on the dark variant
2015-12-04 18:47:28 +01:00
Lapo Calamandrei
cfc17a0152
Adwaita: slight color tweaks
2015-12-04 18:43:24 +01:00
Lapo Calamandrei
07ee962ed3
Adwaita: some OSD rationalization
...
taking care of https://bugzilla.gnome.org/show_bug.cgi?id=732528 in
the process, any toolbar.osd with a positional style class attached
gets squared corners now.
2015-12-03 19:28:57 +01:00
Lapo Calamandrei
d46ab0f62a
Adwaita: scale with marks styling
...
I'm really sorry for the unlucky ones who would have to read that
code...
2015-12-03 18:41:35 +01:00
Lapo Calamandrei
37c943c8cd
Adwaita: added back scale marks style
2015-12-03 18:41:35 +01:00
Lapo Calamandrei
234c497474
Adwaita: scale fill style
2015-12-03 12:57:02 +01:00
Lapo Calamandrei
081bdb07c3
Adwaita: rename scale sass templates to be more specific
2015-12-03 11:43:53 +01:00
Lapo Calamandrei
b7a980d5d8
Adwaita: added back style for scales on selected list rows
2015-12-03 11:38:50 +01:00
Lapo Calamandrei
a291003ad4
Adwaita: first stab at GtkScale and GtkProgressBar rewrite
...
...scale has marks stuff missing, coming soon.
2015-12-03 10:54:33 +01:00
Matthias Clasen
0b9136842d
Use :dnd pseudoclass for drag highlighting
...
Instead of a ::draw handler with a hardcoded outline,
use CSS for drawing the highlight.
2015-12-02 23:49:07 -05:00
Lapo Calamandrei
8efdd94a31
Adwaita: button.color fix
...
border-radius: 0 for colorswatch overlay as well.
2015-12-02 17:42:42 +01:00
Lapo Calamandrei
a25fa9922d
Adwaita: vertically linked insensitive entries
...
Brighter border in that case as well.
2015-12-02 17:02:58 +01:00
Benjamin Otte
d26a4b5555
spinner: Active spinners should be :checked, not :active
...
If that sounds confusing, it's because GTK and CSS can sometimes not
agree on naming.
:active for CSS means that a button is currently pressed on an element.
And that is clearly not the case for spinning spinners.
2015-12-02 00:39:25 +01:00
Benjamin Otte
2396265523
css: Rename -gtk-image-effect to -gtk-icon-effect
...
This is a property for icons, so we should name it as such.
2015-12-02 00:29:31 +01:00
Matthias Clasen
8ea14162d3
Adwaita: No background for spinners
...
Blue background for spinners doesn't make sense.
2015-11-26 15:08:54 -05:00
Matthias Clasen
b1f0283630
Adwaita: use -gtk-icon-shadow
...
The name icon-shadow has been deprecated and causes warnings.
2015-11-20 20:35:39 -05:00
Matthias Clasen
49bb6d287c
Adwaita: Drop deprecated style properties
2015-11-17 19:41:08 -05:00
Matthias Clasen
e24c248013
Adwaita: Remove deprecated style properties
...
These are now triggering warnings, so clean them up.
2015-11-16 15:14:41 -05:00
Matthias Clasen
4cee658f5f
Adwaita: Misc cleanups
...
Various cleanups and simplifications.
2015-11-14 18:25:24 -05:00
Matthias Clasen
718ca64bb7
Adwaita: Fix selection styling in icon views
...
This was also broken by recent selection styling changes.
2015-11-14 17:36:35 -05:00
Matthias Clasen
919be04a3d
Adwaita: Fix selection styling in flow boxes
...
This was broken by recent selection styling changes.
2015-11-14 17:33:00 -05:00
Matthias Clasen
dc836abbb4
Adwaita: Fix window shadow size
...
Ensure that the shadow extents don't change as we go to backdrop,
to prevent windows from jumping.
2015-11-14 12:55:34 -05:00
Matthias Clasen
386b9ef075
Adwaita: Fix styling of selected rows in treeviews
...
This broke in some of the recent selection handling changes.
2015-11-13 07:07:53 -05:00
Matthias Clasen
d5ab5fee3b
Adwaita: Update levelbar styling
...
Adapt to the changes in the previous commit. In particular, fix
the handling of low and high offsets. Anything below the low offset
gets warning color, anything below high gets selected background,
and anything below the new full offset gets success color.
2015-11-13 00:56:54 -05:00
Matthias Clasen
2a0024ebe2
Adwaita: Update levelbar rendering
...
Adapt to the changes in the previous commit.
2015-11-11 00:26:32 -05:00
Matthias Clasen
fbd6a814c6
Adwaita: Update textview selection styling
...
Use the selection name.
2015-11-10 21:51:36 -05:00
Matthias Clasen
218d584b54
Adwaita: Update label selection styling
...
Adapt to the changes in the previous commit.
2015-11-10 20:29:31 -05:00
Matthias Clasen
e7854aeb42
Adwaita: Update entry selection rendering
...
Adapt to the changes in the previous commit.
2015-11-10 13:37:15 -05:00
Matthias Clasen
3552f524c3
Adwaita: Update tooltip styling more
...
Now that tooltips are csd again, the CSS wasn't quite working
anymore.
2015-11-10 12:48:40 -05:00
Matthias Clasen
69cbf0a129
Adwaita: update tooltip styling
...
Adapt to the changes in the previous commit. Note that tooltip
appearance is currently affected by tooltips having lost their
csd nature, due to a regression.
2015-11-10 12:26:05 -05:00
Matthias Clasen
8efb1b1f92
Adwaita: Update treeview rubberband styling
...
Adapt to the changes in the previous commit.
2015-11-10 07:30:29 -05:00
Matthias Clasen
f6201e4ccd
Adwaita: Update flowbox rubberband styling
...
Adapt to the changes in the previous commit.
2015-11-10 00:52:09 -05:00
Matthias Clasen
f4076dff42
Adwaita: Update rubberband styling
...
Adapt to the changes in the previous commit.
2015-11-10 00:28:46 -05:00
Matthias Clasen
3daff48aca
Adwaita: Update text handle styling
...
Adapt to the changes in the previous commit.
2015-11-09 23:47:08 -05:00
Matthias Clasen
f564f16b5c
Adwaita: Update notebook styling
...
Adapt to the changes in the previous commit.
2015-11-08 21:08:38 -05:00
Matthias Clasen
4802b515e4
notebook: Use CSS nodes for arrows
...
This converts the drawing of scroll arrows to use separate CSS
nodes.
2015-11-08 21:08:38 -05:00
Matthias Clasen
6592c6f51f
Adwaita: Adapt notebook styling a bit
...
This needs a lot more work.
2015-11-08 21:08:38 -05:00
Matthias Clasen
f5af2612f4
Adwaita: Update print dialog styling
...
Adapt to the changes in the previous commit. With the changes here,
we always render the paper as white, even in the dark theme.
2015-11-07 00:58:00 -05:00
Matthias Clasen
c63c932a05
Adwaita: Update expander styling
...
Adapt to the changes in the previous commit.
2015-11-07 00:42:37 -05:00
Matthias Clasen
f95a22a3ab
Adwaita: Update range styling
...
Adapt to the new CSS nodes for trough rendering. This commit
also brings back visible fill-level rendering for scales, which
was not working for a while. The styling provided for that
(scale trough fill) is just a placeholder to aid in debugging
the implementation.
2015-11-06 19:28:56 -05:00
Matthias Clasen
11d7f6df7c
range: Use CSS nodes for all trough rendering
...
This replaces the somewhat freewheeling use of style classes to
render a part of the trough highlighted and show a fill level.
2015-11-06 19:25:58 -05:00
Matthias Clasen
ffd517cc3f
Adwaita: Update scale styling
...
Use :first-child/:last-child on the trough for determining
which slider we need.
2015-11-06 07:04:14 -05:00
Matthias Clasen
fd5729baef
Adwaita: Fix up filechooser styling
...
Several details of sidebar and places view styling were lost
along the way. Bring back the circular buttons.
2015-11-05 23:44:16 -05:00
Matthias Clasen
6be2073740
Adwaita: Redo combo box entry styling
...
Instead of relying on .linked or + (which doesn't work right in rtl),
use :not(:only-child) to select a button that is not alone inside a
combobox.
2015-11-05 21:59:56 -05:00
Matthias Clasen
7cd177e0d7
Fix a typo
2015-11-05 21:59:56 -05:00
Matthias Clasen
5d62c808b1
Adwaita: Update window styling
...
We no longer inherit the style classes on the decoration subnodes,
so we have to adjust some selectors.
2015-11-05 16:07:29 -05:00
Matthias Clasen
527f4f44c1
Adwaita: Update listbox styling
...
Adapt to the changes in the previous commit.
2015-11-05 13:53:43 -05:00
Matthias Clasen
35eaca27e4
Adwaita: Update places sidebar styling
...
Use the new element name.
2015-11-05 10:43:02 -05:00
Matthias Clasen
66d2c9e6fa
Adwaita: Update stack sidebar styling
...
We no longer use the .sidebar-item style class.
2015-11-05 08:18:38 -05:00
Matthias Clasen
87c6ae1c18
Adwaita: Update searchbar styling
...
Adapt to the changes in the previous commit.
2015-11-05 07:44:29 -05:00
Matthias Clasen
53ae100e64
Adwaita: Update scale styling
...
Adapt to the introduction of trough nodes.
2015-11-05 07:26:10 -05:00
Matthias Clasen
1261aa6fdf
Adwaita: Update range styling
...
Adjust to the changes in the previous commit. This partially
undoes the earlier range changes.
2015-11-05 07:26:10 -05:00
Matthias Clasen
48e605b7a4
Adwaita: Update progressbar styling
...
Adjust to the changes in the previous commit. This partially
undoes the earlier progressbar changes.
2015-11-04 12:33:06 -05:00
Matthias Clasen
2ef86c94ed
Adwaita: Update scrolledwindow styling
...
Adapt to the changes in the previous commit.
2015-11-04 07:38:15 -05:00
Matthias Clasen
37ad3628a0
Adwaita: Update range styling
...
Adapt to the changes in the previous commit.
2015-11-03 23:17:09 -05:00
Matthias Clasen
9f04efd316
Adwaita: Update menubar styling
...
Adapt to the changes in the previous commit.
2015-11-02 23:49:38 -05:00
Matthias Clasen
b6112c6ed6
Adwaita: Update menu item styling
...
Adapt to the changes in the previous commit.
2015-11-02 23:43:58 -05:00
Matthias Clasen
f8c3e48bd2
Adwaita: Update menu styling
...
Support the element names introduced in the previous commit.
2015-11-02 20:47:56 -05:00
Matthias Clasen
0d12cc3354
Adwaita: Update combobox styling
...
Adapt to the changes in the previous commit. Some further fixes will
be necessary here.
2015-11-02 14:22:49 -05:00
Matthias Clasen
85bfe9ee38
Adwaita: Update magnifier styling
...
Adapt to changes in the previous commit.
2015-11-02 12:46:45 -05:00
Matthias Clasen
957135a57c
Adwaita: Fix menu separators
...
These were inadvertedly broken by the element name conversion
for regular separators.
2015-11-02 12:21:39 -05:00
Matthias Clasen
1bc2913f52
Adwaita: Update tool button styling
2015-10-31 20:52:41 -04:00
Matthias Clasen
5ffd54aca8
Adwaita: Update toolbar styling
...
Adapt to the changes in the previous commit.
2015-10-31 20:42:41 -04:00