metabrush/assets/theme.css

666 lines
12 KiB
CSS
Raw Normal View History

2021-04-21 15:08:33 +00:00
2024-09-27 21:36:33 +00:00
/*
2021-04-21 15:08:33 +00:00
.metabrush * {
2020-08-04 06:15:06 +00:00
all: unset;
}
2024-09-27 21:36:33 +00:00
*/
2024-10-17 16:54:15 +00:00
.metabrush .toggle, .metabrush .dialogButton, .metabrush .titlebar,
2024-10-20 15:49:10 +00:00
.metabrush .windowIcon, .metabrush .strokeButton, .metabrush .fileBarCloseButton,
2024-10-17 16:54:15 +00:00
.metabrush .newFileButton, .metabrush .header,
.metabrush .paned, .metabrush .panel, .metabrush .tabs, .metabrush .frame {
2024-09-27 21:36:33 +00:00
all: unset;
}
2024-10-17 16:54:15 +00:00
.metabrush windowcontrols {
2024-09-27 22:38:32 +00:00
all: unset;
}
2024-10-17 16:54:15 +00:00
.metabrush .reorderable-page {
2024-09-27 21:36:33 +00:00
all: unset;
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu * {
2024-09-27 21:36:33 +00:00
all: unset;
}
2024-10-17 16:54:15 +00:00
.metabrush .frame > * {
2024-09-27 21:36:33 +00:00
all: unset;
}
2024-10-17 16:54:15 +00:00
.metabrush .notebook {
2024-09-27 21:36:33 +00:00
all: unset;
}
@import url("colours.css");
2021-04-21 15:08:33 +00:00
/* Colours parsed by application */
2020-08-04 06:15:06 +00:00
.bg {
background-color: @bg;
color: @bg;
2020-08-04 06:15:06 +00:00
}
2020-08-07 22:41:08 +00:00
.active {
background-color: @active;
color: @active;
2020-08-07 22:41:08 +00:00
}
.close {
color: @closeButtonHover;
}
2020-08-07 22:41:08 +00:00
.highlight {
color: @highlight;
2020-08-07 22:41:08 +00:00
}
.cursor {
color: @cursor;
2020-08-07 22:41:08 +00:00
}
.cursorStroke {
color: @cursorStroke;
2020-08-07 22:41:08 +00:00
}
.cursorIndicator {
color: @cursorIndicator;
}
2020-08-07 22:41:08 +00:00
.plain {
color: @plain;
2020-08-07 22:41:08 +00:00
}
.base {
color: @base;
2020-08-07 22:41:08 +00:00
}
.splash {
color: @splash;
2020-08-07 22:41:08 +00:00
}
.pathPoint {
color: @pathPoint;
2020-08-07 22:41:08 +00:00
}
.pathPointStroke {
color: @pathPointStroke;
2020-08-07 22:41:08 +00:00
}
.controlPoint {
color: @controlPoint;
}
.controlPointLine {
color: @controlPointLine;
2020-08-07 22:41:08 +00:00
}
.controlPointStroke {
color: @controlPointStroke;
2020-08-07 22:41:08 +00:00
}
.path {
color: @path;
2020-08-07 22:41:08 +00:00
}
2020-08-20 01:57:26 +00:00
.brush {
color: @brush;
2020-08-07 22:41:08 +00:00
}
2020-08-20 01:57:26 +00:00
.brushStroke {
color: @brushStroke;
2020-08-20 01:57:26 +00:00
}
.brushCenter {
color: @brushCenter;
2020-08-20 01:57:26 +00:00
}
2020-08-13 17:05:19 +00:00
.pointHover {
color: @pointHover;
2020-08-13 17:05:19 +00:00
}
.pointSelected {
color: @pointSelected;
2020-08-13 17:05:19 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .viewport {
background-color: @base;
color: @base;
2020-08-08 03:33:35 +00:00
min-width: 120px;
min-height: 90px;
2020-08-04 06:15:06 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .viewportScrollbar {
background-color: @scrollbar;
color: @scrollbar;
2020-08-07 22:41:08 +00:00
margin: 4px;
min-width: 8px;
min-height: 8px;
}
2024-10-17 16:54:15 +00:00
.metabrush .tabScrollbar {
background-color: @scrollbar;
color: @scrollbar;
2020-08-07 22:41:08 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .ruler {
background-color: @ruler;
color: @ruler;
min-width: 16px;
min-height: 16px;
background-size: 16px 16px;
}
.rulerTick {
color: @rulerTick;
}
.guide {
color: @guide;
}
2020-08-07 22:41:08 +00:00
.magnifier {
color: @magnifier;
2020-08-07 22:41:08 +00:00
}
.glass {
color: @glass;
2020-08-07 22:41:08 +00:00
}
2020-08-19 21:34:43 +00:00
.selected {
color: @selected;
2020-08-13 22:47:10 +00:00
}
2020-08-19 21:34:43 +00:00
.selectedOutline {
color: @selectedOutline;
2020-08-13 22:47:10 +00:00
}
2024-05-21 17:40:22 +00:00
.brushWidget {
color: @brushWidget;
}
.brushWidgetHover {
color: @brushWidgetHover;
}
2020-08-07 22:41:08 +00:00
/* Proper CSS styling */
/* GTK tooltips */
tooltip {
color: @plain;
background-color: @bg;
border: 1px solid @border;
2020-08-04 06:15:06 +00:00
}
2021-04-21 15:08:33 +00:00
2024-10-17 16:54:15 +00:00
.metabrush .window, .metabrush .dialog {
2021-04-21 15:08:33 +00:00
border-radius: 0px;
border-color: @border;
2021-04-21 15:08:33 +00:00
box-shadow:
0px 3px 9px 1px rgba(0,0,0,0),
0px 2px 6px 2px rgba(0,0,0,0.2),
0px 0px 0px 1px rgba(0,0,0,0.18);
2020-08-07 22:41:08 +00:00
}
2021-04-21 15:08:33 +00:00
2020-08-07 22:41:08 +00:00
/* Basic text colour */
2020-08-04 06:15:06 +00:00
/* Basic text font */
2024-10-17 16:54:15 +00:00
.metabrush .text {
2020-08-05 20:23:16 +00:00
font-family: "Lato", "Roboto", "Helvetica", sans-serif;
2020-08-04 06:15:06 +00:00
}
/* Monospace font */
2024-10-17 16:54:15 +00:00
.metabrush .monospace {
2020-08-05 20:23:16 +00:00
font-family: "Fira Code", "Inconsolata", "Courier", "Courier New", monospace;
2020-08-04 06:15:06 +00:00
}
/* High-constrast text colour */
2024-10-17 16:54:15 +00:00
.metabrush .contrast {
color: @contrast;
2020-08-04 06:15:06 +00:00
}
/* Active (highlighting) colour */
2024-10-17 16:54:15 +00:00
.metabrush .highlight {
color: @highlight;
2020-08-05 20:23:16 +00:00
}
/* Logo area */
2024-10-17 16:54:15 +00:00
.metabrush .logo {
2020-08-06 00:45:20 +00:00
margin-left: 4px;
2020-08-07 19:39:24 +00:00
min-width: 28px;
2020-08-04 06:15:06 +00:00
}
/* Logo base colour */
2024-10-17 16:54:15 +00:00
.metabrush .logo_base {
color: @highlight;
2020-08-04 06:15:06 +00:00
}
/* Logo highlight colour */
2024-10-17 16:54:15 +00:00
.metabrush .logo_highlight {
color: @splash;
2020-08-04 06:15:06 +00:00
}
2020-08-05 20:23:16 +00:00
/* Rulers */
2024-10-17 16:54:15 +00:00
.metabrush .leftRuler {
border-right: 1px solid @rulerBorder;
min-width: 16px;
2020-08-04 06:15:06 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .topRuler {
border-bottom: 1px solid @rulerBorder;
min-height: 16px;
}
2020-08-04 06:15:06 +00:00
2024-10-17 16:54:15 +00:00
.metabrush .rulerCorner {
min-width: 8px;
min-height: 8px;
border-bottom: 1px solid @rulerBorder;
border-right: 1px solid @rulerBorder;
}
2020-08-04 06:15:06 +00:00
/* Cursor colour */
2024-10-17 16:54:15 +00:00
.metabrush .cursor {
color: @cursor;
2020-08-04 06:15:06 +00:00
}
/* Bézier path point colour */
2024-10-17 16:54:15 +00:00
.metabrush .point {
color: @pathPoint;
2020-08-04 06:15:06 +00:00
}
/* Bézier control point colour */
2024-10-17 16:54:15 +00:00
.metabrush .control {
color: @controlPoint;
2020-08-05 20:23:16 +00:00
}
/* Title bar */
2024-10-17 16:54:15 +00:00
.metabrush .titleBar {
2020-08-06 00:45:20 +00:00
min-height: 24px;
2020-08-05 21:30:36 +00:00
font-size: 12px;
background-color: @bg;
2020-08-05 20:23:16 +00:00
}
2020-08-07 19:39:24 +00:00
/*
2024-10-17 16:54:15 +00:00
.metabrush .titleBar > * :hover {
2020-08-05 20:23:16 +00:00
background-color: rgb(72,70,61);
}
2020-08-07 19:39:24 +00:00
*/
2020-08-05 20:23:16 +00:00
2024-10-17 16:54:15 +00:00
.metabrush .title {
border-top: 2px solid @bg;
2020-08-05 21:30:36 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .dialog {
border: 1px solid @border;
2020-09-03 03:57:08 +00:00
border-radius: 6px;
}
2021-04-25 13:22:10 +00:00
/* dialog button */
2024-10-17 16:54:15 +00:00
.metabrush .dialogButton {
background-color: @active;
border: 1px solid @border;
2020-09-03 03:57:08 +00:00
border-radius: 4px;
margin: 6px;
padding: 2px 10px 2px 10px;
}
2024-10-17 16:54:15 +00:00
.metabrush .dialogButton:hover {
border-color: @plain;
2020-09-03 03:57:08 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .dialogButton:active, .metabrush .dialogButton:checked {
color: @active;
border-color: @border;
background-color: @highlight;
2020-09-03 03:57:08 +00:00
}
2021-04-21 15:08:33 +00:00
/* Menu bar */
2020-09-03 03:57:08 +00:00
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu label {
color:@plain;
2020-08-06 00:45:20 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu :disabled {
color: @disabled;
2021-04-21 15:08:33 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu :focus-within {
border-color: @plain;
2021-04-25 13:45:33 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu :focus{
border-color: @active;
background-color: @bg;
2021-04-25 13:45:33 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu item {
2020-08-06 00:45:20 +00:00
padding-left: 8px;
padding-right: 8px;
color: @plain;
border-top: 2px solid @bg;
2020-08-05 20:23:16 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu item > * :hover {
border-color: @plain;
background-color: @active;
2020-08-05 20:23:16 +00:00
}
2021-04-21 15:08:33 +00:00
/* Top-level menu items */
2022-02-09 23:07:44 +00:00
/* GTK documentation:
"The visible part of the popover can have a shadow.
To specify it in CSS, set the box-shadow of the contents node."
*/
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu item > popover > contents {
2022-02-09 23:07:44 +00:00
box-shadow: 2px 3px 3px rgba(0,0,0,0.5)
, -2px 3px 3px rgba(0,0,0,0.5)
, 0px 4px 3px rgba(0,0,0,0.5);
2020-08-05 20:23:16 +00:00
}
2022-02-09 23:07:44 +00:00
/* Look at the CSS with the GTK inspector to figure this out... */
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu item > popover > contents > scrolledwindow > viewport > stack > box > box > modelbutton,
.metabrush .headerMenu item > popover > contents > scrolledwindow > viewport > stack > box > box > box > box > modelbutton
2021-04-25 13:22:10 +00:00
{
background-color: @bg;
color: @active;
2021-04-21 15:08:33 +00:00
border-top: 0px;
border-left: 2px solid @bg;
2022-02-09 23:07:44 +00:00
padding: 6px 10px 6px 10px;
2020-08-07 19:39:24 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu item > popover > contents > scrolledwindow > viewport > stack > box > box > box > separator,
.metabrush .headerMenu item > popover > contents > scrolledwindow > viewport > stack > box > box > box > separator :hover {
background-color: @active;
2021-04-21 15:08:33 +00:00
padding: 1px 0px 0px 1px;
2020-08-06 03:06:18 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .headerMenu item > popover > contents > scrolledwindow > viewport > stack > box > box > modelbutton > accelerator,
.metabrush .headerMenu item > popover > contents > scrolledwindow > viewport > stack > box > box > box > box > modelbutton > accelerator {
2020-09-02 13:58:00 +00:00
font-size: 10px;
color: @shortcutKey;
2022-02-09 23:07:44 +00:00
padding-left: 10px;
2020-09-02 13:58:00 +00:00
}
.metabrush .listViewPane {
font-size: 12px;
}
2024-10-17 16:54:15 +00:00
.metabrush .listViewPane :selected {
background-color: unset;
font-weight: bold;
color: black;
}
/* Stroke popover menu */
/* TODO: refactor with menu */
.metabrush .strokeMenu > * {
background-color: @bg;
}
.metabrush .strokeMenu contents, .metabrush .strokeMenu arrow {
2024-10-17 16:54:15 +00:00
border: unset;
border-radius: 0px;
margin: 0px;
padding: 0px;
border: 1px solid black;
}
.metabrush .strokeMenu .flat {
border-left: 2px solid @bg;
border-top: 0px;
}
.metabrush .strokeMenu :selected {
color: @plain;
background-color: @active;
font-weight: normal;
border-left: 2px solid @plain;
border-radius: 0px;
}
.metabrush .strokeMenu separator {
background-color: @contrast;
margin: 0px;
}
.metabrush .strokeMenu .separator {
color: black;
background-color: @contrast;
font-weight: normal;
opacity: 1;
margin: 4px 10px 4px 10px;
padding: 0px 6px 0px 6px;
border: 0px solid black;
border-radius: 2px;
}
.metabrush .windowIcon {
2020-08-07 19:39:24 +00:00
min-width: 24px;
}
2024-10-17 16:54:15 +00:00
.metabrush .windowIcon:hover {
background-color: @windowButtonHover;
2020-08-07 19:39:24 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .windowIcon:active, .metabrush .windowIcon:checked {
background-color: @windowButtonActive;
2020-08-07 19:39:24 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .closeWindowIcon:hover {
background-color: @closeButtonHover;
2020-08-07 19:39:24 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .closeWindowIcon:active, .metabrush .closeWindowIcon:checked {
background-color: @closeButtonActive;
2020-08-05 20:23:16 +00:00
}
/* Tool bar */
2024-10-17 16:54:15 +00:00
.metabrush .toolBar {
2020-08-07 19:39:24 +00:00
min-width: 32px;
margin-top: 28px;
}
2024-10-17 16:54:15 +00:00
.metabrush .toolBarSeparator {
2020-08-07 22:41:08 +00:00
min-height: 2px;
margin-left: 10px;
margin-right: 10px;
margin-top: 4px;
margin-bottom: 4px;
background-color: @active;
2020-08-07 22:41:08 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .toolItem {
border-left: 2px solid @bg;
2020-08-07 22:41:08 +00:00
min-height: 40px;
min-width: 40px;
padding-top: 8px;
2020-08-07 19:39:24 +00:00
padding-bottom: 8px;
2020-08-07 22:41:08 +00:00
padding-left: 3px;
padding-right: 3px;
2020-08-07 19:39:24 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .toolItem:hover {
border-color: @active;
2020-08-07 19:39:24 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .toolItem:active, .metabrush .toolItem:checked {
border-color: @base;
background-color: @active;
2020-08-05 20:23:16 +00:00
}
/* File bar */
2024-10-17 16:54:15 +00:00
.metabrush .fileBar {
2020-08-06 00:45:20 +00:00
min-height: 24px;
font-size: 11px;
2020-08-06 00:45:20 +00:00
margin-top: 2px;
}
2024-10-17 16:54:15 +00:00
.metabrush .fileBarTab {
border-top: 2px solid @bg;
2020-08-06 00:45:20 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .fileBarTab:hover {
border-color: @active;
2020-08-06 00:45:20 +00:00
}
2024-10-21 12:58:53 +00:00
.metabrush .activeTab {
border-color: @base;
background-color: @active;
/* font-weight: bold; */
2020-08-05 20:23:16 +00:00
}
2024-10-21 12:58:53 +00:00
.metabrush .activeTab:hover {
border-color: @base;
}
.metabrush .fileBarTab label {
margin-left: 10px;
margin-top: 2px;
2024-10-21 12:58:53 +00:00
color: @plain;
}
2024-10-17 16:54:15 +00:00
.metabrush .fileBarTabButton {
2020-08-06 03:06:18 +00:00
padding-left: 8px;
padding-right: 2px;
2020-08-06 03:06:18 +00:00
margin: 0px;
}
2024-10-17 16:54:15 +00:00
.metabrush .fileBarCloseButton {
min-width: 10px;
min-height: 22px;
2020-09-01 19:56:59 +00:00
padding-left: 1px;
2020-08-06 03:06:18 +00:00
padding-right: 5px;
margin: 0px;
color: @plain;
2020-08-06 03:06:18 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .fileBarCloseButton:hover {
color: @closeButtonHover;
}
2024-10-17 16:54:15 +00:00
.metabrush .fileBarCloseButton:active, .metabrush .fileBarCloseButton:checked {
color: @closeButtonActive;
2020-08-06 03:06:18 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .newFileButton {
color: @newFileButton;
2020-09-01 19:56:59 +00:00
font-size: 16px;
font-weight: bold;
font-family: "Sans";
padding: 0px 5px 0px 4px;
margin: 3px 0px 3px 0px;
border-left: 1px solid @bg;
2020-09-01 19:56:59 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .newFileButton:hover, .metabrush .newFileButton:active, .metabrush newFileButton:checked {
color: @newFileButtonActive;
2020-09-01 19:56:59 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .newFileButton:active, .metabrush .newFileButton:checked {
border-color: @newFileButtonActive;
2020-09-01 19:56:59 +00:00
}
2020-08-05 20:23:16 +00:00
/* Panels */
2024-10-17 16:54:15 +00:00
.metabrush .panels {
2020-08-06 00:45:20 +00:00
min-width: 120px;
2020-08-05 20:23:16 +00:00
font-size: 12px;
}
2024-10-17 16:54:15 +00:00
.metabrush .panels tab {
2020-08-08 13:53:06 +00:00
padding-left: 6px;
padding-right: 6px;
border-top: 2px solid @bg;
2020-08-08 13:53:06 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .panels tab:hover {
border-color: @active;
2020-08-08 13:53:06 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .panels tab:active, .metabrush .panels tab:checked {
background-color: @active;
2020-08-08 13:53:06 +00:00
border-color: rgb(234,223,204);
}
2024-10-17 16:54:15 +00:00
.metabrush .panel {
background-color: @active;
min-height: 20px;
2020-08-08 13:53:06 +00:00
}
2020-08-05 20:23:16 +00:00
/* Info bar */
2024-10-17 16:54:15 +00:00
.metabrush .infoBar {
2020-08-05 20:23:16 +00:00
min-height: 40px;
font-size: 10px;
}
2024-10-17 16:54:15 +00:00
.metabrush .infoBarInfo {
margin-left: -4px;
padding-right: 16px;
2024-09-27 21:36:33 +00:00
}
/* Stroke hierarchy layers */
2024-10-17 16:54:15 +00:00
.metabrush row {
2024-09-27 21:36:33 +00:00
border-top: 0px;
border-bottom: 0px;
margin-top: -2px;
margin-bottom: -2px;
}
/* Slightly hacky way to align layers and groups */
2024-10-17 16:54:15 +00:00
.metabrush indent {
2024-09-27 21:36:33 +00:00
margin-left: 4px;
margin-right: 4px;
}
2024-10-20 15:49:10 +00:00
/* Stroke visibility and locked button */
.metabrush .strokeButton {
min-width: 16px;
min-height: 16px;
margin-right: 4px;
2024-10-19 09:49:53 +00:00
}
2024-10-17 16:54:15 +00:00
.metabrush .layer-item, .metabrush .brush-item {
2024-09-27 21:36:33 +00:00
color: @plain;
background-color: @active;
border: 0px solid @bg;
2024-09-27 23:32:03 +00:00
transition: all 0.35s ease-in-out;
2024-09-27 21:36:33 +00:00
padding-top: 4px;
padding-bottom: 4px;
border-top: 1px solid @active;
border-bottom: 1px solid @active;
margin-top: -1px;
margin-bottom: -1px;
padding-left: 3px;
}
2024-10-17 16:54:15 +00:00
.metabrush :selected .layer-item, .metabrush :selected .brush-item {
2024-09-27 21:36:33 +00:00
color: black;
background-color: @contrast;
border-color: @contrast;
2024-09-27 21:36:33 +00:00
}
/* Add "drop here" areas when a drag has been initiated */
2024-10-17 16:54:15 +00:00
.metabrush .dragging-item .layer-item {
2024-09-27 21:36:33 +00:00
}
/* Style when dragging over an item */
2024-10-17 16:54:15 +00:00
.metabrush .drag-over.layer-item {
2024-09-27 21:36:33 +00:00
}
2024-10-09 14:57:08 +00:00
/* Style when dragging layer item over the top part of an item */
.dragging-item .drag-top.layer-item {
2024-09-27 21:36:33 +00:00
border-top: 2px solid @highlight;
margin-top: -2px;
box-shadow:
inset 0 8px 6px -6px @highlight;
}
2024-10-09 14:57:08 +00:00
/* Style when dragging layer item over the bottom part of an item */
.dragging-item .drag-bot.layer-item {
2024-09-27 21:36:33 +00:00
border-bottom: 2px solid @highlight;
margin-bottom: -2px;
box-shadow:
inset 0 -8px 6px -6px @highlight;
}
2024-10-09 14:57:08 +00:00
/* Style when dragging brush over an item */
.dragging-brush .drag-over.layer-item {
box-shadow: unset;
box-shadow:
inset 8px -8px 2px -6px @brushStroke,
inset -8px 8px 2px -6px @brushStroke;
2024-10-09 14:57:08 +00:00
background-color: @brushStroke;
}
2024-09-27 21:36:33 +00:00
/* Style for item being dragged */
2024-10-17 16:54:15 +00:00
.metabrush .dragged.layer-item {
2024-09-27 21:36:33 +00:00
background-color: @bg;
transition:
background-color 0.4s ease-in-out;
}
/* Wide separator styling */
.metabrush .wide {
background-color: @bg;
background-size: 0px;
background-image: none;
min-width: 2px;
min-height: 2px;
}
/* List view */
.metabrush .view {
margin-top: 3px;
border: 0px;
background-color: @bg;
}