Commit c3cf2df0 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

gtk-demo: Add demo of hidpi css assets via -gtk-scaled()

parent dbcfc1f6
......@@ -119,6 +119,8 @@ RESOURCES= $(demos) \
listbox.ui \
alphatest.png \
apple-red.png \
brick.png \
brick2.png \
background.jpg \
floppybuddy.gif \
gnome-applets.png \
......
demos/gtk-demo/brick.png

10.8 KB | W: | H:

demos/gtk-demo/brick.png

4.92 KB | W: | H:

demos/gtk-demo/brick.png
demos/gtk-demo/brick.png
demos/gtk-demo/brick.png
demos/gtk-demo/brick.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -117,7 +117,7 @@ do_css_multiplebgs (GtkWidget *do_widget)
gtk_widget_set_name (child, "bricks-button");
gtk_widget_set_halign (child, GTK_ALIGN_CENTER);
gtk_widget_set_valign (child, GTK_ALIGN_CENTER);
gtk_widget_set_size_request (child, 200, 80);
gtk_widget_set_size_request (child, 250, 84);
paned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_overlay_add_overlay (GTK_OVERLAY (container), paned);
......
......@@ -56,7 +56,7 @@
/*
#bricks-button {
background-color: #eef;
background-image: url('resource:///css_multiplebgs/brick.png');
background-image: -gtk-scaled(url('resource:///css_multiplebgs/brick.png'),url('resource:///css_multiplebgs/brick2.png'));
background-repeat: no-repeat;
background-position: center;
}
......
......@@ -26,6 +26,7 @@
<gresource prefix="/css_multiplebgs">
<file>css_multiplebgs.css</file>
<file>brick.png</file>
<file>brick2.png</file>
<file>cssview.css</file>
<file>reset.css</file>
</gresource>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment