2014-10-07 01:19:50 +02:00
|
|
|
/*
|
2018-10-05 03:25:50 +02:00
|
|
|
lumiera.css - GTK-3 style sheet for the Lumiera GUI
|
2008-04-20 00:16:27 +02:00
|
|
|
|
2014-10-07 01:19:50 +02:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2014, Hermann Vosseler <Ichthyostega@web.de>
|
2008-04-20 00:16:27 +02:00
|
|
|
|
2014-10-07 01:19:50 +02:00
|
|
|
Based on the GKT-2 stylesheet by Joel Holdsworth, which in turn
|
|
|
|
|
was based on the styling of the Ardour DAW software (Ardour.org)
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
* ********************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-07 04:56:05 +02:00
|
|
|
/* ---------- Default Colours and Style ------------ */
|
|
|
|
|
|
|
|
|
|
@define-color bg_color rgb(35%, 35%, 40%);
|
|
|
|
|
@define-color fg_color rgb(80%, 80%, 80%);
|
2014-10-09 03:44:02 +02:00
|
|
|
|
|
|
|
|
@define-color hover_bg_color #565690;
|
|
|
|
|
|
|
|
|
|
@define-color field_color #1a1e20;
|
|
|
|
|
@define-color hover_field_color #2B2B27;
|
|
|
|
|
|
|
|
|
|
@define-color selected_fg_color #05182F;
|
|
|
|
|
@define-color selected_bg_color #F0E592;
|
|
|
|
|
|
|
|
|
|
@define-color disabled_fg_color shade(@fg_color, .6);
|
|
|
|
|
@define-color disabled_bg_color #4C5159;
|
|
|
|
|
|
|
|
|
|
@define-color menue_button_color shade(@bg_color, .85);
|
2014-10-07 04:56:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
* {
|
|
|
|
|
border-width: 1px;
|
2014-10-08 05:16:43 +02:00
|
|
|
border-style: outset;
|
|
|
|
|
border-color: shade(@bg_color, 0.80);
|
2014-10-07 04:56:05 +02:00
|
|
|
|
StyleCSS: abandon using a theme engine
In GTK-2 you'd always use a theming engine.
During the transitional period, GTK-3 followed that path,
but at the point when the new CSS based system was mature enough,
this approach was discouraged, since it means to ship additional
executable code and defeats the purpose of configuring the look
of the application through one coherent set of rules.
As it turns out, debian continued to ship the 'adwaita' for some
extended transitional period, but in Stretch it is gone, which broke
our half-way ported stylesheet.
This changeset removes the use of a theming engine, and fixes tha
basic look by adding the background-color: inherit, which pushes aside
many (but not all) of the default theme definitions.
However, our stylesheet remains mostly broken and TODO for now
2018-10-05 00:29:48 +02:00
|
|
|
color: inherit; /* by default inherit content colour from parent widget */
|
|
|
|
|
background-color: inherit;
|
2014-10-07 04:56:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GtkWindow {
|
2014-10-09 03:44:02 +02:00
|
|
|
color: @fg_color;
|
2014-10-07 04:56:05 +02:00
|
|
|
background-color: @bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-09 03:44:02 +02:00
|
|
|
.default:HOVER,
|
|
|
|
|
.button:HOVER {
|
|
|
|
|
background-color: @hover_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.default:ACTIVE,
|
|
|
|
|
.button:ACTIVE {
|
|
|
|
|
color: shade(@fg_color, 1.2);
|
|
|
|
|
background-color: @hover_bg_color;
|
|
|
|
|
border-color: shade(@bg_color, 1.5);
|
|
|
|
|
border-style: solid;
|
|
|
|
|
border-width: 1px;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-08 05:16:43 +02:00
|
|
|
.entry, .view {
|
2014-10-07 04:56:05 +02:00
|
|
|
/* any active or text input area */
|
|
|
|
|
background-color: @field_color;
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-09 03:44:02 +02:00
|
|
|
.entry:HOVER,
|
|
|
|
|
.view:HOVER {
|
|
|
|
|
background-color: @hover_field_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.entry:SELECTED {
|
|
|
|
|
color: @selected_fg_color;
|
|
|
|
|
background-color: @selected_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
*:INSENSITIVE,
|
|
|
|
|
.buttonINSENSITIVE,
|
|
|
|
|
.entry:INSENSITIVE {
|
|
|
|
|
color: @disabled_fg_color;
|
|
|
|
|
background-color: @disabled_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.menubar {
|
|
|
|
|
background-image: -gtk-gradient(linear, left top, left bottom,
|
|
|
|
|
from(shade(@bg_color, 1.2)),
|
|
|
|
|
to(@menue_button_color));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menuitem * {
|
|
|
|
|
/* can't style the background directly, thus use a contextual selector */
|
|
|
|
|
color: @fg_color;
|
|
|
|
|
background-color: @menue_button_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menuitem:HOVER {
|
|
|
|
|
background-color: @hover_bg_color;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menuitem:INSENSITIVE * {
|
|
|
|
|
color: @disabled_fg_color;
|
|
|
|
|
background-color: @disabled_bg_color;
|
|
|
|
|
}
|
2014-10-07 04:56:05 +02:00
|
|
|
|
2015-05-29 04:44:58 +02:00
|
|
|
/* ==============/////TODO left-over from the old GTK-2 stylesheet
|
|
|
|
|
|
2008-06-05 21:27:53 +02:00
|
|
|
style "medium_text"
|
2008-04-20 00:16:27 +02:00
|
|
|
{
|
2008-12-26 21:47:54 +01:00
|
|
|
|
2008-06-05 21:27:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
style "medium_bold_entry" = "medium_text"
|
|
|
|
|
{
|
2008-05-31 18:44:44 +02:00
|
|
|
fg[NORMAL] = { 0.70, 0.70, 0.70 }
|
|
|
|
|
fg[ACTIVE] = { 0.70, 0.70, 0.70 }
|
|
|
|
|
|
2014-10-07 04:56:05 +02:00
|
|
|
bg[NORMAL] = { 0.35, 0.35, 0.40 } ↻ redundant
|
2008-05-31 18:44:44 +02:00
|
|
|
|
|
|
|
|
base[NORMAL] = { 0, 0, 0 }
|
|
|
|
|
base[ACTIVE] = { 0, 0, 0 }
|
|
|
|
|
base[SELECTED] = { 0, 0, 0 }
|
2008-04-20 00:16:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
style "default_base" = "medium_text"
|
|
|
|
|
{
|
|
|
|
|
GtkWidget::cursor_color = {1.0, 1.0, 1.0 }
|
|
|
|
|
GtkButton::default_border = { 0, 0, 0, 0 }
|
|
|
|
|
GtkButton::default_outside_border = { 0, 0, 0, 0 }
|
|
|
|
|
GtkTreeView::vertical-padding = 0
|
|
|
|
|
GtkTreeView::horizontal-padding = 0
|
|
|
|
|
GtkTreeView::even-row-color = { 0, 0, 0 }
|
|
|
|
|
GtkTreeView::odd-row-color = { 0, 0, 0 }
|
|
|
|
|
|
2014-10-07 04:56:05 +02:00
|
|
|
fg[NORMAL] = { 0.80, 0.80, 0.80 } ✔ ported
|
2014-10-09 03:44:02 +02:00
|
|
|
fg[ACTIVE] = { 0.80, 0.80, 0.80 } ✗ changed
|
|
|
|
|
fg[PRELIGHT] = { 1.0, 1.0, 1.0 } ✔
|
2008-04-20 00:16:27 +02:00
|
|
|
fg[INSENSITIVE] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
fg[SELECTED] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
|
2014-10-07 04:56:05 +02:00
|
|
|
bg[NORMAL] = { 0.35, 0.35, 0.40 } ✔
|
2014-10-09 03:44:02 +02:00
|
|
|
bg[ACTIVE] = { 0.35, 0.35, 0.40 } ✗ changed
|
|
|
|
|
bg[PRELIGHT] = "#565690" ✔
|
|
|
|
|
bg[INSENSITIVE] = { 0.10, 0.10, 0.10 } ✔
|
|
|
|
|
bg[SELECTED] = { 0.40, 0.40, 0.45 } ↻ ✗
|
2008-04-20 00:16:27 +02:00
|
|
|
|
2014-10-07 04:56:05 +02:00
|
|
|
text[NORMAL] = { 0.80, 0.80, 0.80 } ↻
|
2014-10-09 03:44:02 +02:00
|
|
|
text[ACTIVE] = { 0.80, 0.80, 0.80 } ↻
|
|
|
|
|
text[PRELIGHT] = { 0.80, 0.80, 0.80 } ↻
|
|
|
|
|
text[INSENSITIVE] = { 0.80, 0.80, 0.80} ↻
|
|
|
|
|
text[SELECTED] = { 1.0, 1.0, 1.0 } ✗ changed
|
2008-04-20 00:16:27 +02:00
|
|
|
|
|
|
|
|
base[ACTIVE] = "#272a2f"
|
2014-10-08 05:16:43 +02:00
|
|
|
base[NORMAL] = "#1a1e20" ✔
|
2014-10-09 03:44:02 +02:00
|
|
|
base[PRELIGHT] = { 0.20, 0.20, 0.20 } ↻
|
|
|
|
|
base[INSENSITIVE] = "#4c5159" ✗
|
|
|
|
|
base[SELECTED] = { 0.25, 0.25, 0.25 } ✗ changed
|
2008-04-20 00:16:27 +02:00
|
|
|
|
|
|
|
|
engine "clearlooks"
|
|
|
|
|
{
|
|
|
|
|
menubarstyle = 2 # 0 = flat, 1 = sunken, 2 = flat gradient
|
2008-05-31 18:44:44 +02:00
|
|
|
# menuitemstyle = 1 # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
|
|
|
|
|
# listviewitemstyle = 1 # 0 = flat, 1 = 3d-ish (gradient)
|
|
|
|
|
# progressbarstyle = 1 # 0 = candy bar, 1 = fancy candy bar, 2 = flat
|
2008-04-20 00:16:27 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-10-08 05:16:43 +02:00
|
|
|
*/
|
|
|
|
|
/* ---------- Styles for Standard Widgets ---------- */
|
|
|
|
|
|
|
|
|
|
GtkComboBox {
|
|
|
|
|
background-color: @field_color;
|
|
|
|
|
}
|
|
|
|
|
/*
|
2008-04-20 00:16:27 +02:00
|
|
|
style "default_buttons_menus"
|
|
|
|
|
{
|
|
|
|
|
fg[ACTIVE] = { 1.0, 1.0, 1.0 }
|
|
|
|
|
|
|
|
|
|
bg[NORMAL] = { 0.30, 0.30, 0.35 }
|
|
|
|
|
bg[ACTIVE] = "#565690"
|
|
|
|
|
bg[PRELIGHT] = { 0.15, 0.15, 0.20 }
|
|
|
|
|
bg[INSENSITIVE] = { 0.15, 0.15, 0.20 }
|
|
|
|
|
bg[SELECTED] = { 0.15, 0.15, 0.20 }
|
|
|
|
|
}
|
|
|
|
|
|
2008-05-31 18:44:44 +02:00
|
|
|
style "lumiera_adjusters" = "default_buttons_menus"
|
2008-04-20 00:16:27 +02:00
|
|
|
{
|
2008-06-23 22:06:07 +02:00
|
|
|
fg[NORMAL] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
fg[ACTIVE] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
|
|
|
|
|
fg[INSENSITIVE] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
fg[SELECTED] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
|
|
|
|
|
bg[NORMAL] = { 0.35, 0.35, 0.40 }
|
|
|
|
|
bg[ACTIVE] = { 0.35, 0.35, 0.40 }
|
|
|
|
|
bg[PRELIGHT] = "#565690"
|
|
|
|
|
bg[INSENSITIVE] = { 0.10, 0.10, 0.10 }
|
2008-10-10 12:18:38 +02:00
|
|
|
bg[SELECTED] = { 0.35, 0.35, 0.40 }
|
2008-04-20 00:16:27 +02:00
|
|
|
}
|
|
|
|
|
|
2008-05-31 18:44:44 +02:00
|
|
|
style "lumiera_progressbars" = "default_buttons_menus"
|
2008-04-20 00:16:27 +02:00
|
|
|
{
|
|
|
|
|
bg[NORMAL] = { 0, 0, 0 }
|
|
|
|
|
bg[PRELIGHT] = { 0.00, 0.36, 0.40 }
|
|
|
|
|
}
|
|
|
|
|
|
2008-05-31 18:44:44 +02:00
|
|
|
style "lumiera_button" = "default_buttons_menus"
|
2008-04-20 00:16:27 +02:00
|
|
|
{
|
2008-05-31 18:44:44 +02:00
|
|
|
xthickness = 1
|
|
|
|
|
ythickness = 1
|
2008-04-20 00:16:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
style "tearoff_arrow" = "medium_bold_entry"
|
|
|
|
|
{
|
|
|
|
|
fg[NORMAL] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
fg[PRELIGHT] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
bg[NORMAL] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
bg[PRELIGHT] = { 0.80, 0.80, 0.80 }
|
|
|
|
|
}
|
|
|
|
|
|
2008-05-31 18:44:44 +02:00
|
|
|
class "GtkWidget" style:highest "default_base"
|
|
|
|
|
class "GtkScrollbar" style:highest "lumiera_adjusters"
|
|
|
|
|
class "GtkLabel" style:highest "default_buttons_menus"
|
|
|
|
|
class "GtkButton" style:highest "lumiera_button"
|
|
|
|
|
class "GtkArrow" style:highest "tearoff_arrow"
|
|
|
|
|
class "GtkProgressBar" style:highest "lumiera_progressbars"
|
2014-10-07 01:19:50 +02:00
|
|
|
*/
|
|
|
|
|
|
2008-04-20 00:16:27 +02:00
|
|
|
|
|
|
|
|
|
2014-10-07 01:19:50 +02:00
|
|
|
/* ---------- Styles for Lumiera Widgets ---------- */
|
|
|
|
|
/*
|
2008-05-31 18:44:44 +02:00
|
|
|
style "timeline_body"
|
2008-04-20 00:16:27 +02:00
|
|
|
{
|
2008-06-19 00:57:47 +02:00
|
|
|
gtkmm__CustomObject_TimelineBody::background = "#7E838B"
|
2008-08-14 00:47:47 +02:00
|
|
|
gtkmm__CustomObject_TimelineBody::selection = "#2D2D90"
|
|
|
|
|
gtkmm__CustomObject_TimelineBody::selection_alpha = 0.5
|
2008-10-07 22:17:29 +02:00
|
|
|
gtkmm__CustomObject_TimelineBody::playback_point = "#006000"
|
2008-06-19 00:57:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
style "timeline_ruler" = "default_base"
|
|
|
|
|
{
|
2008-06-23 18:07:57 +02:00
|
|
|
font_name = "sans 8"
|
2008-06-23 22:18:20 +02:00
|
|
|
gtkmm__CustomObject_TimelineRuler::height = 18
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::major_tick_height = 18
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::minor_long_tick_height = 6
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::minor_short_tick_height = 3
|
2008-06-23 18:48:48 +02:00
|
|
|
gtkmm__CustomObject_TimelineRuler::annotation_horz_margin = 3
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::annotation_vert_margin = 0
|
2008-06-23 22:18:20 +02:00
|
|
|
gtkmm__CustomObject_TimelineRuler::min_division_width = 100
|
2008-06-25 21:23:53 +02:00
|
|
|
gtkmm__CustomObject_TimelineRuler::mouse_chevron_size = 5
|
2008-08-14 00:47:47 +02:00
|
|
|
gtkmm__CustomObject_TimelineRuler::selection_chevron_size = 5
|
2008-10-07 22:17:29 +02:00
|
|
|
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::playback_point_colour = "#006000"
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::playback_point_alpha = 0.5
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::playback_point_size = 12
|
|
|
|
|
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::playback_period_arrow_colour = "#2D2D90"
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::playback_period_arrow_alpha = 0.5
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::playback_period_arrow_size = 10
|
|
|
|
|
gtkmm__CustomObject_TimelineRuler::playback_period_arrow_stem_size = 3
|
2008-04-20 00:16:27 +02:00
|
|
|
}
|
|
|
|
|
|
2009-01-15 00:20:43 +01:00
|
|
|
style "timeline_header_widget" = "default_base"
|
2008-06-05 21:27:53 +02:00
|
|
|
{
|
2009-01-15 00:20:43 +01:00
|
|
|
gtkmm__CustomObject_TimelineHeaderWidget::margin = 4
|
|
|
|
|
gtkmm__CustomObject_TimelineHeaderWidget::expand_button_size = 12
|
2008-06-05 21:27:53 +02:00
|
|
|
}
|
|
|
|
|
|
2008-05-31 18:44:44 +02:00
|
|
|
class "gtkmm__CustomObject_TimelineBody" style:highest "timeline_body"
|
2008-06-19 00:57:47 +02:00
|
|
|
class "gtkmm__CustomObject_TimelineRuler" style:highest "timeline_ruler"
|
2009-01-15 00:20:43 +01:00
|
|
|
class "gtkmm__CustomObject_TimelineHeaderWidget" style:highest "timeline_header_widget"
|
2008-06-05 21:27:53 +02:00
|
|
|
|
2014-10-07 01:19:50 +02:00
|
|
|
*/
|
2018-10-05 03:25:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* ---------- Styles for special markup ---------- */
|
2018-10-05 05:36:53 +02:00
|
|
|
|
2019-08-03 17:20:14 +02:00
|
|
|
.indication-flash,
|
|
|
|
|
.indication-flash * {
|
2018-10-05 05:36:53 +02:00
|
|
|
background-color: shade(@hover_bg_color, 1.6);
|
|
|
|
|
}
|
2019-08-03 17:20:14 +02:00
|
|
|
.indication-flash text {
|
2018-10-05 05:36:53 +02:00
|
|
|
border: 4px solid red;
|
|
|
|
|
}
|