metabrush/assets/theme.css

602 lines
9.9 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-09-27 22:38:32 +00:00
.toggle, .dialogButton, .titlebar, .titleBar, .windowIcon, .fileBarCloseButton,
2024-09-27 21:36:33 +00:00
.newFileButton, .header, .paned, .panel, .tabs, .frame {
all: unset;
}
2024-09-27 22:38:32 +00:00
windowcontrols {
all: unset;
}
2024-09-27 21:36:33 +00:00
.reorderable-page {
all: unset;
}
.menu * {
all: unset;
}
.frame > * {
all: unset;
}
.notebook {
all: unset;
}
2020-08-04 06:15:06 +00:00
@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
}
2020-08-07 22:41:08 +00:00
.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
}
2020-08-07 22:41:08 +00:00
.viewportScrollbar {
background-color: @scrollbar;
color: @scrollbar;
2020-08-07 22:41:08 +00:00
margin: 4px;
min-width: 8px;
min-height: 8px;
}
.tabScrollbar {
background-color: @scrollbar;
color: @scrollbar;
2020-08-07 22:41:08 +00:00
}
.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
2020-09-03 03:57:08 +00:00
.window, .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 */
.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 */
.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 */
.contrast {
color: @contrast;
2020-08-04 06:15:06 +00:00
}
/* Active (highlighting) colour */
.highlight {
color: @highlight;
2020-08-05 20:23:16 +00:00
}
/* Logo area */
.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 */
.logo_base {
color: @highlight;
2020-08-04 06:15:06 +00:00
}
/* Logo highlight colour */
.logo_highlight {
color: @splash;
2020-08-04 06:15:06 +00:00
}
2020-08-05 20:23:16 +00:00
/* Rulers */
.leftRuler {
border-right: 1px solid @rulerBorder;
min-width: 16px;
2020-08-04 06:15:06 +00:00
}
.topRuler {
border-bottom: 1px solid @rulerBorder;
min-height: 16px;
}
2020-08-04 06:15:06 +00:00
.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 */
.cursor {
color: @cursor;
2020-08-04 06:15:06 +00:00
}
/* Bézier path point colour */
.point {
color: @pathPoint;
2020-08-04 06:15:06 +00:00
}
/* Bézier control point colour */
.control {
color: @controlPoint;
2020-08-05 20:23:16 +00:00
}
/* Title bar */
.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
/*
2020-08-05 20:23:16 +00:00
.titleBar > * :hover {
background-color: rgb(72,70,61);
}
2020-08-07 19:39:24 +00:00
*/
2020-08-05 20:23:16 +00:00
2020-08-05 21:30:36 +00:00
.title {
border-top: 2px solid @bg;
2020-08-05 21:30:36 +00:00
}
2020-09-03 03:57:08 +00:00
.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 */
2020-09-03 03:57:08 +00:00
.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;
}
.dialogButton:hover {
border-color: @plain;
2020-09-03 03:57:08 +00:00
}
.dialogButton:active, .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
2021-04-21 15:08:33 +00:00
.menu label {
color:@plain;
2020-08-06 00:45:20 +00:00
}
2021-04-21 15:08:33 +00:00
.menu :disabled {
color: @disabled;
2021-04-21 15:08:33 +00:00
}
2021-04-25 13:45:33 +00:00
.menu :focus-within {
border-color: @plain;
2021-04-25 13:45:33 +00:00
}
.menu :focus{
border-color: @active;
background-color: @bg;
2021-04-25 13:45:33 +00:00
}
2021-04-21 15:08:33 +00:00
.menu 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
}
2021-04-21 15:08:33 +00:00
.menu 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."
*/
.menu item > popover > contents {
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... */
.menu item > popover > contents > scrolledwindow > viewport > stack > box > box > modelbutton,
.menu 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
}
2022-02-09 23:07:44 +00:00
.menu item > popover > contents > scrolledwindow > viewport > stack > box > box > box > separator,
.menu 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
}
2022-02-09 23:07:44 +00:00
.menu item > popover > contents > scrolledwindow > viewport > stack > box > box > modelbutton > accelerator,
.menu 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
}
2020-08-05 21:30:36 +00:00
.windowIcon {
2020-08-07 19:39:24 +00:00
min-width: 24px;
}
.windowIcon:hover {
background-color: @windowButtonHover;
2020-08-07 19:39:24 +00:00
}
.windowIcon:active, .windowIcon:checked {
background-color: @windowButtonActive;
2020-08-07 19:39:24 +00:00
}
.closeWindowIcon:hover {
background-color: @closeButtonHover;
2020-08-07 19:39:24 +00:00
}
.closeWindowIcon:active, .closeWindowIcon:checked {
background-color: @closeButtonActive;
2020-08-05 20:23:16 +00:00
}
/* Tool bar */
.toolBar {
2020-08-07 19:39:24 +00:00
min-width: 32px;
margin-top: 28px;
}
2020-08-07 22:41:08 +00:00
.toolBarSeparator {
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
}
2020-08-07 19:39:24 +00:00
.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
}
.toolItem:hover {
border-color: @active;
2020-08-07 19:39:24 +00:00
}
.toolItem:active, .toolItem:checked {
border-color: @base;
background-color: @active;
2020-08-05 20:23:16 +00:00
}
/* File bar */
.fileBar {
2020-08-06 00:45:20 +00:00
min-height: 24px;
font-size: 12px;
margin-top: 2px;
}
.fileBarTab {
border-top: 2px solid @bg;
2020-08-06 00:45:20 +00:00
}
.fileBarTab:hover {
border-color: @active;
2020-08-06 00:45:20 +00:00
}
.fileBarTab:active, .fileBarTab:checked {
border-color: @base;
background-color: @active;
2020-08-05 20:23:16 +00:00
}
2020-08-06 03:06:18 +00:00
.fileBarTabButton {
padding-left: 8px;
padding-right: 2px;
2020-08-06 03:06:18 +00:00
margin: 0px;
}
.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
}
.fileBarCloseButton:hover {
color: @closeButtonHover;
}
.fileBarCloseButton:active, .fileBarCloseButton:checked {
color: @closeButtonActive;
2020-08-06 03:06:18 +00:00
}
2020-09-01 19:56:59 +00:00
.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
}
.newFileButton:hover, .newFileButton:active, newFileButton:checked {
color: @newFileButtonActive;
2020-09-01 19:56:59 +00:00
}
.newFileButton:active, .newFileButton:checked {
border-color: @newFileButtonActive;
2020-09-01 19:56:59 +00:00
}
2020-08-05 20:23:16 +00:00
/* Panels */
.panels {
2020-08-06 00:45:20 +00:00
min-width: 120px;
2020-08-05 20:23:16 +00:00
font-size: 12px;
}
2020-08-08 13:53:06 +00:00
.panels tab {
padding-left: 6px;
padding-right: 6px;
border-top: 2px solid @bg;
2020-08-08 13:53:06 +00:00
}
.panels tab:hover {
border-color: @active;
2020-08-08 13:53:06 +00:00
}
.panels tab:active, .panels tab:checked {
background-color: @active;
2020-08-08 13:53:06 +00:00
border-color: rgb(234,223,204);
}
.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 */
.infoBar {
min-height: 40px;
font-size: 10px;
}
.infoBarInfo {
margin-left: -4px;
padding-right: 16px;
2024-09-27 21:36:33 +00:00
}
/* Stroke hierarchy layers */
row {
border-top: 0px;
border-bottom: 0px;
margin-top: -2px;
margin-bottom: -2px;
}
/* Slightly hacky way to align layers and groups */
indent {
margin-left: 4px;
margin-right: 4px;
}
:selected {
background-color: rgba(255,255,255,0);
font-weight: bold;
color: black;
}
2024-10-09 14:57:08 +00:00
.layer-item, .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-09 14:57:08 +00:00
:selected .layer-item, :selected .brush-item {
2024-09-27 21:36:33 +00:00
color: black;
background-color: @contrast;
border: 0px solid @contrast;
}
/* Add "drop here" areas when a drag has been initiated */
.dragging-item .layer-item {
}
/* Style when dragging over an item */
.drag-over.layer-item {
}
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-top.layer-item, .dragging-brush .drag-bot.layer-item {
border-top: 2px solid @brushStroke;
border-bottom: 2px solid @brushStroke;
border-left: 0px;
border-right: 0px;
margin-top: -2px;
margin-bottom: -2px;
background-color: @brushStroke;
}
2024-09-27 21:36:33 +00:00
/* Style for item being dragged */
.dragged.layer-item {
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;
}