Benjamin Otte
3056d793a4
cssparser: Make _gtk_css_parser_has_number() a bit smarter
...
Previously we just checked the first character. And if that was a "-" as
in "-gtk-some-special-value", we assumed it was a number. Which it
clearly wasn't.
Test included
2016-02-23 04:22:19 +01:00
Benjamin Otte
437dec6295
csscolorvalue: Print a comma for win32 values
2016-02-23 04:22:19 +01:00
Benjamin Otte
c3dc0d80f1
container: Request layout again depending on layout mode
...
Containers with RESIZE_MODE_PARENT should never request layout and those
with RESIZE_MODE_IMMEDIATE should only request it for updating CSS.
Fixes clutter embeds (like the tray icon embed in gnome-shell)
continuously requesting relayout when all they want to do is relegate
relayout to Clutter.
https://bugzilla.gnome.org/show_bug.cgi?id=758893
2016-02-23 04:22:19 +01:00
Lapo Calamandrei
5906b15c5e
Adwaita: avoids up pointing scale slider to jump down on hover
...
and comment back sass debugging stuff in the process...
2016-02-22 11:29:43 +01:00
Lapo Calamandrei
9fb9d208fd
Adwaita: fix scale with marks sliders
...
looks like sass was confused by the way I structured the loops,
this works that around.
2016-02-22 11:16:32 +01:00
Lapo Calamandrei
7f89856b29
Adwaita: color scale slider fixes
...
use the pointy slider on colorscales, this way it picks the
correct slider on rtl.
2016-02-22 10:55:58 +01:00
Chun-wei Fan
5962daef4f
Windows: Update how gtk-win32.rc is generated
...
On Visual Studio, unlike MinGW, manifest files are embedded via
including the manifest file as a resource file in the projects, not
via the .rc file. This means that the line in the .rc file that
specifies the manifest file would cause trouble, so that line gets
removed when the full gtk3-win32.rc is generated on Visual Studio builds,
otherwise 2010+ Visual Studio will complain when compiling the .rc file.
Also, the inclusion of winuser.h will cause warnings during the
compilation of the .rc file.
Fix this by isolating the Win32 resource portions of gtk-win32.rc.in to
gtk-win32.rc.body.in and:
-On MinGW, construct the full gtk-win32.rc by doing the winver.h and
winuser.h inclusion first, then append the contents of gtk-win32.rc.body,
and then appending the line to embed the manifest file.
-On Visual Studio, simply copy the gtk-win32.rc.body to gtk-win32.rc,
and generate the full libgtk3.manifest file.
https://bugzilla.gnome.org/show_bug.cgi?id=762311
2016-02-22 17:40:17 +08:00
Benjamin Otte
6c0270bbcb
win32 theme: Make tooltips look right
...
Includes adding fallback support
2016-02-22 04:37:57 +01:00
Benjamin Otte
808017d1d0
win32 theme: Size titlebar icons correctly.
...
Sizing according to
http://web.archive.org/web/20070301202835/http://shellrevealed.com/photos/blog_images/images/4538/original.aspx
2016-02-22 04:37:57 +01:00
Benjamin Otte
414657100f
win32draw: Use the right checks
...
The first check was the wrong way around.
The second check made the function look wrong. Invalid ID is actually
the special case that should be handled first, so write the function
like that.
2016-02-22 04:37:57 +01:00
Benjamin Otte
cdb12fec9e
win32 theme: Replace metric ids with metric names
...
Makes it more obvious what's actually happening.
2016-02-22 04:37:57 +01:00
Benjamin Otte
dc1e191df5
csssizevalue: Allow using the name for a win32 metric
...
... instead of just the ID.
2016-02-22 04:37:56 +01:00
Benjamin Otte
98216867d1
win32: Allow querying names for metrics
2016-02-22 04:37:56 +01:00
Benjamin Otte
63934ba36c
win32 theme: Replace color ids with color names
...
Makes it more obvious what's actually happening.
2016-02-22 02:36:11 +01:00
Benjamin Otte
37a4e1cda9
csscolor: Allow using the name for a win32 color
...
... instead of just the ID.
2016-02-22 02:36:11 +01:00
Benjamin Otte
ecaca073f1
win32: Allow querying names for colors
2016-02-22 02:36:11 +01:00
John Ralls
3cf98a4353
Fix typo.
2016-02-21 16:17:46 -08:00
Benjamin Otte
e935993d96
win32 fallback: Draw window title button images
...
Taken from Wine's Marlett font.
2016-02-21 20:44:37 +01:00
Benjamin Otte
828f2e1801
win32 theme: Sanitize a few colors
2016-02-21 20:44:36 +01:00
Benjamin Otte
2e709fde82
win32 fallback: Add code to draw titlebars
2016-02-21 20:44:36 +01:00
Benjamin Otte
3c5c748cd4
win32 fallback: Warn if we don't know how to draw a part
2016-02-21 20:44:36 +01:00
Benjamin Otte
c73db50aed
win32: Implement GetSystemMetric() fallbacks
...
Default values taken from Wine.
2016-02-21 20:44:36 +01:00
Benjamin Otte
c2dd3c0d89
win32: Move variable definition to not cause gcc warning
...
It's only used on win32, so only define it there.
2016-02-21 20:44:36 +01:00
Matthias Clasen
0c91584532
Adwaita: Drop decoration.ssd selector
...
We've settled on window.ssd decoration instead.
https://bugzilla.gnome.org/show_bug.cgi?id=760714
2016-02-21 00:55:41 -05:00
Matthias Clasen
5a80a35757
drawingarea: Update docs around background handling
...
The behavior changed this cycle. Update the docs to recommend
an explicit gtk_render_background call.
2016-02-21 00:46:54 -05:00
Matthias Clasen
52e0ab53dc
print dialog: More baseline alignment
...
Some places were missing the right valign setting to make
baselines line up properly.
2016-02-21 00:09:32 -05:00
Matthias Clasen
e9300e2f79
dnd: Avoid a crash
...
gtk_image_definition_new_icon_name ("") returns NULL. Bail
out early in this case to avoid unreffing NULL later.
https://bugzilla.gnome.org/show_bug.cgi?id=762392
2016-02-20 22:43:43 -05:00
Matthias Clasen
a754579e44
css gadget: Adjust baselines for min-height
...
We were forcing the size to be at least min-height, but we left the
baselines as they were, which had the effect of making text e.g
in entries 'stick to the top'.
With this change, we adjust the baseline to keep the ratio of
baseline to height unchanged.
2016-02-20 22:31:39 -05:00
Benjamin Otte
f3d67cc2ac
win32 theme: Add rudimentary titlebar support
2016-02-21 03:02:36 +01:00
Benjamin Otte
eda348d2b5
win32: Handle size queries for all values
...
Fall back to GetSystemMetrics() whenever GetThemeSysSize() didn't work.
2016-02-21 03:02:36 +01:00
Benjamin Otte
63eb15b730
win32: Add missing break in switch statement
...
Oops.
2016-02-21 03:02:36 +01:00
Benjamin Otte
1548b680fc
css: Make outline-offset animatable
...
CSS claims it should be, so we make it.
2016-02-21 01:02:51 +01:00
Benjamin Otte
e4a485dca2
renderborder: Add API to query the outline clip
...
And use it in implementation of gadgets.
2016-02-21 01:02:51 +01:00
Benjamin Otte
23b3774e6b
css: Mark outline properties as affecting clip when they do
2016-02-21 01:02:51 +01:00
Matthias Clasen
966dd56e45
entry: Fix baseline allocation
...
Position the text on the baseline again.
2016-02-20 18:55:17 -05:00
Matthias Clasen
6b53138a01
box: Fix rtl allocation with center widget
...
The code for adjusting the center widget allocation in case
of uneven sides never worked right in RTL. This was finally
noticed for tabs with close button, which commonly use a
centered label.
2016-02-20 16:45:26 -05:00
Lapo Calamandrei
7698ac447a
Adwaita: remove unused selector in _common.scss
2016-02-20 19:52:46 +01:00
Lapo Calamandrei
effee1f35e
Revert "Adwaita: resurrect scale-has-marks-above/below classes"
...
This reverts commit edcc0c2783
.
Since the colorscale styling is wrong in rtl, need to do things
differntly.
2016-02-20 19:50:49 +01:00
Lapo Calamandrei
44f6fcfbd3
Adwaita: move 1px up the check asset
2016-02-20 19:37:21 +01:00
Lapo Calamandrei
b23300c89d
Adwaita: fix entry progressbar
...
it now moves using the whole entry lenght, in the process the
style was tweaked to not need a special case for focused entries.
2016-02-20 19:31:58 +01:00
Matthias Clasen
7c577ddf4f
assistant: Add margin to action area
...
We are no longer setting a margin on the content area, so put
one on the action area itself to prevent the buttons from touching
the edge.
https://bugzilla.gnome.org/show_bug.cgi?id=762315
2016-02-20 11:27:56 -05:00
Lapo Calamandrei
edcc0c2783
Adwaita: resurrect scale-has-marks-above/below classes
...
the colorscales use said classes.
2016-02-20 17:25:51 +01:00
Matthias Clasen
d2454000f6
expander: Draw focus again
...
This was lost when GtkExpander was ported to use box gadgets.
2016-02-20 11:17:12 -05:00
Matthias Clasen
7ed1225296
check button: Draw focus again
...
The box gadget now has API for this; use it.
2016-02-20 10:54:48 -05:00
Matthias Clasen
ebff86d6f6
box gadget: Make it possible to draw focus
...
There are widgets which use a box gadget and take focus,
like GtkCheckButton.
2016-02-20 10:54:48 -05:00
Lapo Calamandrei
079e90b780
Adwaita: scale slider assets refresh
...
...and update the theme accordingly.
2016-02-20 16:07:00 +01:00
Benjamin Otte
d2fb069426
entry: Make get_text_area_size() vfunc work again
...
GdTaggedEntry needs that. Though there's probably a bunch of work left
inside GdTaggedEntry to make it look cute again (like storing the area
it reserves for itself to allocate tags in).
2016-02-20 03:25:39 +01:00
Lapo Calamandrei
a979cff748
Adwaita: check/radio/slider gradient tweaks
2016-02-19 18:03:38 +01:00
Lapo Calamandrei
09cd17a001
Revert "Adwaita: restrict button transition"
...
Shouldn't be needed with recent Benjamin work.
This reverts commit 79ca3f03a8
.
2016-02-19 14:39:47 +01:00
Lapo Calamandrei
826913135b
Revert "Adwaita: only needed properties on entry transition"
...
Shouldn't be needed with recent Benjamin work.
This reverts commit d57f4a781c
.
2016-02-19 14:38:22 +01:00