X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fdark-theme.css;h=acb0cb5269bffc6405ca413d98917b6d4eaeab5e;hp=bdaf21b19d5ce2597172d2ee4ecf4e6cf82286d4;hb=368d0b7ff30fae6bb74e895e6fb8d1a182a1cb1c;hpb=9168a62c02f1b9fe7953f2fba5f32305980ac1a3 diff --git a/LCARStrek/browser/devtools/dark-theme.css b/LCARStrek/browser/devtools/dark-theme.css index bdaf21b1..acb0cb52 100644 --- a/LCARStrek/browser/devtools/dark-theme.css +++ b/LCARStrek/browser/devtools/dark-theme.css @@ -6,39 +6,83 @@ /* According to: * https://bugzilla.mozilla.org/show_bug.cgi?id=715472#c17 */ +:root { + --theme-body-background: #000000; + --theme-sidebar-background: #000000; + --theme-contrast-background: #402800; + --theme-contrast-border: #A09090; + --theme-contrast-background2: #795900; + +/* --theme-tab-toolbar-background: #.252c33; */ + --theme-toolbar-background: #000000; + --theme-hover-background: #FFCF00; + --theme-hover-color: #000000; + --theme-active-background: #FFCF00; + --theme-active-color: #000000; + --theme-selection-background: #008484; + --theme-selection-color: #000000; + --theme-selection-background2: #004242; + --theme-selection-color2: #FF9F00; + --theme-selection-background-semitransparent: rgba(0, 132, 132, .5); + --theme-splitter-color: #9C9CFF; + --theme-comment: #A09090; + + --theme-contrastsidebar-background: #A09090; + --theme-contrastsidebar-color: #000000; + --theme-contrastsidebar-bordercolor: #000000; + + --theme-body-color: #FF9F00; + --theme-body-color-alt: #A09090; + --theme-content-color1: #FF9F00; + --theme-content-color2: #A09090; + --theme-content-color3: #FF9F00; + --theme-content-disabled: #8050B0; + + --theme-text-blue: #3333FF; + --theme-highlight-green: #008484; + --theme-highlight-blue: #9C9CFF; + --theme-highlight-bluegrey: #A09090; + --theme-highlight-purple: #C09070; + --theme-highlight-darkpurple: #6000CF; + --theme-highlight-lightorange: #FFCF00; + --theme-highlight-orange: #FF9F00; + --theme-highlight-red: #FF0000; + --theme-highlight-pink: #E7ADE7; +} + .theme-body { - background: #000000; - color: #FF9F00; + background: var(--theme-body-background); + color: var(--theme-body-color); } .theme-sidebar { - background: #000000; - color: #FF9F00; + background: var(--theme-sidebar-background); + color: var(--theme-content-color1); } ::-moz-selection { - background-color: #008484; - color: #FFCF00; + background-color: var(--theme-selection-background); + color: var(--theme-selection-color); } .theme-bg-darker { - background-color: rgba(0,0,0,0.5); + background: var(--theme-selection-background-semitransparent); } .theme-selected, .CodeMirror-hint-active { - background: #004242; - color: #FF9F00; /* Light foreground text */ + background-color: var(--theme-selection-background2); + color: var(--theme-selection-color2); } .theme-bg-contrast, -.variable-or-property:not([overridden])[changed] { /* contrast bg color to attract attention on a container */ - background: #402800; +.variable-or-property:not([overridden])[changed] { + background: var(--theme-contrast-background); } .theme-link, .cm-s-mozilla .cm-link { /* original: blue */ - color: #3333FF; + color: var(--theme-text-blue); } /* @@ -47,8 +91,8 @@ */ .theme-link:visited, .cm-s-mozilla .cm-link:visited, -.CodeMirror-Tern-type { /* original: blue */ - color: #3333FF; +.CodeMirror-Tern-type { + color: var(--theme-text-blue); } .theme-comment, @@ -56,17 +100,14 @@ .cm-s-mozilla .cm-hr, .cm-s-mozilla .cm-comment, .variable-or-property .token-undefined, -.variable-or-property .token-null { /* original: grey */ - color: #A09090; -} - +.variable-or-property .token-null, .CodeMirror-Tern-completion-unknown:before { - background-color: #A09090; + color: var(--theme-comment); } .theme-gutter { background-color: #000000; - color: #FF9F00; + color: var(--theme-content-color3); border-color: #9C9CFF; } @@ -78,8 +119,8 @@ .cm-s-mozilla .cm-number, .variable-or-property .token-number, .variable-or-property[return] > .title > .name, -.variable-or-property[scope] > .title > .name { /* original: green */ - color: #008484; +.variable-or-property[scope] > .title > .name { + color: var(--theme-highlight-green); } .CodeMirror-Tern-completion-number:before { @@ -92,8 +133,8 @@ .cm-s-mozilla .cm-def, .cm-s-mozilla .cm-property, .cm-s-mozilla .cm-qualifier, -.variables-view-variable > .title > .name { /* original: blue */ - color: #9C9CFF; +.variables-view-variable > .title > .name { + color: var(--theme-highlight-blue); } .CodeMirror-Tern-completion-object:before { @@ -102,7 +143,7 @@ .cm-s-mozilla .cm-unused-line { text-decoration: line-through; - -moz-text-decoration-color: #8050B0; + text-decoration-color: #8050B0; } .cm-s-mozilla .cm-executed-line { @@ -113,31 +154,31 @@ .cm-s-mozilla .cm-builtin, .cm-s-mozilla .cm-tag, .cm-s-mozilla .cm-header, +.cm-s-mozilla .cm-bracket, .variables-view-property > .title > .name, -.variable-or-property[safe-getter] > .title > .name { /* original: pink/lavender */ - color: #E7ADE7; +.variable-or-property[safe-getter] > .title > .name { + color: var(--theme-highlight-pink); } .CodeMirror-Tern-completion-array:before { - background-color: #E7ADE7; + color: var(--theme-highlight-pink); /* var(--theme-highlight-bluegrey) */ } -.theme-fg-color4 { /* original: purple/violet */ - color: #C09070; +.theme-fg-color4 { + color: var(--theme-highlight-purple); } .theme-fg-color5, -.cm-s-mozilla .cm-bracket, -.cm-s-mozilla .cm-keyword { /* original: Yellow */ - color: #FFCF00; +.cm-s-mozilla .cm-keyword { + color: var(--theme-highlight-lightorange); } .theme-fg-color6, .cm-s-mozilla .cm-string, .cm-s-mozilla .cm-string-2, .variable-or-property .token-string, -.CodeMirror-Tern-farg { /* original: Orange */ - color: #E7ADE7; +.CodeMirror-Tern-farg { + color: var(--theme-highlight-pink); /* -orange? */ } .CodeMirror-Tern-completion-string:before, @@ -151,8 +192,8 @@ .cm-s-mozilla .cm-error, .variable-or-property .token-boolean, .variable-or-property .token-domnode, -.variable-or-property[exception] > .title > .name { /* original: Red */ - color: #FF0000; +.variable-or-property[exception] > .title > .name { + color: var(--theme-highlight-red); } .CodeMirror-Tern-completion-bool:before { @@ -165,8 +206,11 @@ .theme-toolbar, .devtools-toolbar, -.devtools-sidebar-tabs > tabs, +.devtools-sidebar-tabs tabs, +.devtools-sidebar-alltabs, .CodeMirror-dialog { /* General toolbar styling */ +/* color: var(--theme-body-color-alt); + background-color: var(--theme-toolbar-background);*/ } @@ -200,8 +244,8 @@ .cm-s-mozilla .cm-variable-2, .cm-s-mozilla .cm-variable-3, .cm-s-mozilla .cm-operator, -.cm-s-mozilla .cm-special { /* theme-body color */ - color: #FF9F00; +.cm-s-mozilla .cm-special { + color: var(--theme-content-color1); } .cm-s-mozilla .CodeMirror-lines .CodeMirror-cursor { @@ -251,12 +295,12 @@ div.CodeMirror span.eval-text { } .cm-s-mozilla .CodeMirror-linenumber { /* line number text */ - color: #A09090; + color: var(--theme-content-color2); } .cm-s-mozilla .CodeMirror-gutters { /* vertical line next to line numbers */ - border-right-color: #A09090; - background-color: #402800; + border-right-color: var(--theme-contrast-border); + background-color: var(--theme-contrast-background); } .cm-s-markup-view pre { @@ -361,12 +405,6 @@ div.CodeMirror span.eval-text { border-bottom: 0; } -.devtools-horizontal-splitter { -} - -.devtools-side-splitter { -} - .devtools-textinput, .devtools-searchinput { background-color: #000000; @@ -380,14 +418,15 @@ div.CodeMirror span.eval-text { .CodeMirror-hints, .CodeMirror-Tern-tooltip { background-color: #000000; - color: #FF9F00; + color: var(--theme-body-color); } /* === BEGIN toolbars.inc.css === */ /* Toolbars */ .devtools-toolbar, -.devtools-sidebar-tabs > tabs { +.devtools-sidebar-tabs tabs, +.devtools-sidebar-alltabs { } .devtools-toolbar { @@ -395,7 +434,7 @@ div.CodeMirror span.eval-text { .devtools-toolbar checkbox { /* LCARStrek checkbox colors don't work well against toolbar background */ - background-color: #000000; + background-color: var(--theme-toolbar-background); padding: 2px; } .devtools-toolbar checkbox .checkbox-check { @@ -413,7 +452,7 @@ div.CodeMirror span.eval-text { .devtools-menulist:-moz-focusring, .devtools-toolbarbutton:-moz-focusring { - outline: 1px dotted #008484; + outline: 1px dotted var(--theme-selection-color); } .devtools-toolbarbutton[standalone] { @@ -432,11 +471,21 @@ div.CodeMirror span.eval-text { min-width: inherit; } +/* Command buttons with menupopups should be styled slightly differently - + no background color and a bit more narrow */ +#toolbox-buttons .devtools-toolbarbutton:not([text-as-image]):not(:hover):not([open=true]) { + background: transparent; +} +#toolbox-buttons .devtools-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker { + padding: 0 2px; +} + .devtools-toolbarbutton:not([label]) > .toolbarbutton-text { display: none; } .devtools-toolbar .devtools-toolbarbutton { + -moz-margin-start: 2px; } .devtools-toolbarbutton > .toolbarbutton-icon { @@ -470,15 +519,15 @@ div.CodeMirror span.eval-text { } /* Button States */ -.devtools-toolbarbutton:hover, -#toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover, -.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover { +.devtools-toolbarbutton:not([disabled]):hover, +#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover, +.devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover { /* background: rgba(0, 0, 0, .3); / Splitters */ } -.devtools-toolbarbutton:hover:active, -#toolbox-buttons .devtools-toolbarbutton[text-as-image]:hover:active, -.devtools-toolbarbutton[label]:not([text-as-image]):not([type=menu-button]):hover:active { +.devtools-toolbarbutton:not([disabled]):hover:active, +#toolbox-buttons .devtools-toolbarbutton:not([disabled])[text-as-image]:hover:active, +.devtools-toolbarbutton:not([disabled])[label]:not([text-as-image]):not([type=menu-button]):hover:active { /* background: rgba(0, 0, 0, .4); / Splitters */ } @@ -486,7 +535,7 @@ div.CodeMirror span.eval-text { .devtools-toolbarbutton[checked=true], #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] { /* background: rgba(29, 79, 115, .7); / Select highlight blue / - color: #f5f7fa;*/ + color: var(--theme-selection-color); */ } .devtools-menulist[open=true], @@ -497,7 +546,7 @@ div.CodeMirror span.eval-text { .devtools-toolbarbutton[checked=true]:hover, #toolbox-buttons .devtools-toolbarbutton[text-as-image][checked] { /* background: rgba(29, 79, 115, .8); / Select highlight blue / - color: #f5f7fa; */ + color: var(--theme-selection-color); */ } .devtools-toolbarbutton[checked=true]:hover { @@ -527,6 +576,59 @@ div.CodeMirror span.eval-text { .devtools-separator + .devtools-toolbarbutton { } +/* HTML buttons, similar to toolbar buttons, but work in HTML documents */ + +.devtools-button { + border: 0 solid var(--theme-splitter-color); + background: var(--theme-toolbar-background); + margin: 0; + padding: 0; + min-width: 32px; + min-height: 18px; + /* The icon is absolutely positioned in the button using ::before */ + position: relative; +} + +.devtools-button[standalone] { + min-height: 32px; + border-width: 1px; +} + +/* Button States */ +.devtools-button:not([disabled]):hover { + background: var(--theme-hover-background); + color: var(--theme-hover-color); +} + +.devtools-button:not([disabled]):hover:active { + background: var(--theme-active-background); + color: var(--theme-active-color); +} + +/* Menu type buttons and checked states */ +.devtools-button[checked] { + background: var(--theme-selection-background); + color: var(--theme-selection-color); +} + +.devtools-button::before { + content: ""; + display: block; + width: 16px; + height: 16px; + position: absolute; + left: 50%; + top: 50%; + margin: -8px 0 0 -8px; + background-repeat: no-repeat; +} + +@media (min-resolution: 2dppx) { + .devtools-button::before { + background-size: 32px; + } +} + /* Text input */ .devtools-textinput, @@ -569,7 +671,7 @@ div.CodeMirror span.eval-text { } .devtools-no-search-result { - border-color: #FF0000 !important; + border-color: var(--theme-highlight-red) !important; } /* Close button */ @@ -608,17 +710,28 @@ div.CodeMirror span.eval-text { border: 0; } -.devtools-sidebar-tabs > tabs { +.devtools-sidebar-tabs tabs { position: static; overflow: hidden; } -.devtools-sidebar-tabs > tabs > .tabs-right, -.devtools-sidebar-tabs > tabs > .tabs-left { +.devtools-sidebar-alltabs { +/* margin: 0; + border-width: 0 0 1px 0; + -moz-border-start-width: 1px; + border-style: solid;*/ +} + +.devtools-sidebar-alltabs dropmarker { display: none; } -.devtools-sidebar-tabs > tabs > tab { +.devtools-sidebar-tabs tabs > .tabs-right, +.devtools-sidebar-tabs tabs > .tabs-left { + display: none; +} + +.devtools-sidebar-tabs tabs > tab { min-width: 78px; text-align: center; -moz-box-flex: 1; @@ -626,52 +739,34 @@ div.CodeMirror span.eval-text { margin-top: 0; } -.devtools-sidebar-tabs > tabs > tab:-moz-focusring { +.devtools-sidebar-tabs tabs > tab:-moz-focusring { position: static; } -.devtools-sidebar-tabs > tabs > tab:last-of-type { +.devtools-sidebar-tabs tabs > tab:last-of-type { -moz-border-end-width: 0; } -.devtools-sidebar-tabs > tabs > tab:first-of-type { - -moz-margin-start: 0; -} - -.devtools-sidebar-tabs > tabs > tab { -} - -.devtools-sidebar-tabs > tabs > tab:not(:last-of-type) { -} - -.devtools-sidebar-tabs:-moz-locale-dir(rtl) > tabs > tab { -} - -.devtools-sidebar-tabs > tabs > tab { -} - -.devtools-sidebar-tabs > tabs > tab:hover { +.devtools-sidebar-tabs tabs > tab:first-child { } -.devtools-sidebar-tabs > tabs > tab:hover:active { +.devtools-sidebar-tabs tabs > tab:hover { } -.devtools-sidebar-tabs > tabs > tab[selected] + tab { +.devtools-sidebar-tabs tabs > tab:hover:active { } -.devtools-sidebar-tabs > tabs > tab[selected] + tab:hover { +.devtools-sidebar-tabs tabs > tab[selected] + tab { } -.devtools-sidebar-tabs > tabs > tab[selected] + tab:hover:active { +.devtools-sidebar-tabs tabs > tab[selected] + tab:hover { } -.devtools-sidebar-tabs > tabs > tab[selected] { +.devtools-sidebar-tabs tabs > tab[selected] + tab:hover:active { } -.devtools-sidebar-tabs > tabs > tab[selected]:hover { -} - -.devtools-sidebar-tabs > tabs > tab[selected]:hover:active { +.devtools-sidebar-tabs tabs > tab[selected], +.devtools-sidebar-tabs tabs > tab[selected]:hover:active { } /* Toolbox - moved from toolbox.css. @@ -754,7 +849,8 @@ div.CodeMirror span.eval-text { .command-button:hover > image, .command-button:hover:active > image, -.command-button[checked=true] > image { +.command-button[checked=true] > image, +.command-button[open=true] > image { background-position: -16px center; } @@ -782,6 +878,10 @@ div.CodeMirror span.eval-text { background-image: url("chrome://browser/skin/devtools/command-pick.png"); } +#command-button-frames > image { + background-image: url("chrome://browser/skin/devtools/command-frames.png"); +} + #command-button-splitconsole > image { background-image: url("chrome://browser/skin/devtools/command-console.png"); } @@ -815,6 +915,10 @@ div.CodeMirror span.eval-text { background-image: url("chrome://browser/skin/devtools/command-pick@2x.png"); } + #command-button-frames > image { + background-image: url("chrome://browser/skin/devtools/command-frames@2x.png"); + } + #command-button-splitconsole > image { background-image: url("chrome://browser/skin/devtools/command-console@2x.png"); } @@ -864,13 +968,13 @@ div.CodeMirror span.eval-text { .devtools-tab:hover, .devtools-tab:hover:active { - background-color: #FFCF00; - color: #000000; + background-color: var(--theme-hover-background); + color: var(--theme-hover-color); } .devtools-tab[selected] { - background-color: #008484; - color: #000000; + background-color: var(--theme-selection-background); + color: var(--theme-selection-color); } .devtools-tab > spacer { @@ -931,4 +1035,13 @@ div.CodeMirror span.eval-text { display: none; } +.devtools-horizontal-splitter { +/* border-bottom: 1px solid var(--theme-splitter-color); */ +} + +.devtools-side-splitter { +/* -moz-border-end: 1px solid var(--theme-splitter-color); + border-color: var(--theme-splitter-color); / Needed for responsive container at low width. */ +} + /* === END toolbars.inc.css === */