lumiera_/research/gtk-style-experiment.css
Ichthyostega 3921a9d41c Investigation: use a StyleContext for custom drawing
- add a separate dummy Gtk::Frame widget
- apply custom styling to that frame, by virtue of a CSS class '.experiment'
- pick up the Gtk::StyleContext of that testFrame
- use this style context to draw a custom frame onto the canvas
- control extension of that custom frame through the top margin of testFrame
2019-08-01 01:07:22 +02:00

46 lines
1.1 KiB
CSS

/*
gtk-style-experiment.css - investigate GTKs CSS implementation
Copyright (C) Lumiera.org
2019, Hermann Vosseler <Ichthyostega@web.de>
Styles and Graphics of the Lumiera GUI can be used and redistributed
under the the terms of the GNU General Public License version 2 or
above, or (at your option) under Creative Commons CC-By-SA.
* ********************************************************/
/* CSS stylesheet loaded by gtk-style-experiment.cpp on top of
* the system theme, with GTK_STYLE_PROVIDER_PRIORITY_APPLICATION
*/
/* ---------- Styles for Lumiera Widgets ---------- */
/* ---------- Styles for special markup ---------- */
/* special styling for the frame widget within the main window....
* This styling will be picked up by our custom drawing code
*/
frame.experiment {
margin: 4ex 0;
border: 5px inset IndianRed;
background-color: Lime;
}
.track-slope-deep2 {
border-width: 10px;
}
.track-slope-deep3 {
border-width: 14px;
}
.track-slope-deep4 {
border-width: 17px;
}
.track-slope-verydeep {
border-width: 20px;
}