X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fdevtools%2Fcanvasdebugger.css;h=6d99e543515df63a7c6ac482c780702d7bb77a3f;hp=a532f1004e78f5b9fa7ee0b6326ffd03b8f3c8cf;hb=b1d1a8bbaca0a31b2c2581911368b6892d447718;hpb=dc9d5d64a3f915cb832f43050545b432f33504f7 diff --git a/LCARStrek/devtools/canvasdebugger.css b/LCARStrek/devtools/canvasdebugger.css index a532f100..6d99e543 100644 --- a/LCARStrek/devtools/canvasdebugger.css +++ b/LCARStrek/devtools/canvasdebugger.css @@ -2,19 +2,32 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +:root { + --gutter-width: 3em; + --gutter-padding-start: 22px; + --checkerboard-pattern: linear-gradient(45deg, rgba(128,128,128,0.2) 25%, transparent 25%, transparent 75%, rgba(128,128,128,0.2) 75%, rgba(128,128,128,0.2)), + linear-gradient(45deg, rgba(128,128,128,0.2) 25%, transparent 25%, transparent 75%, rgba(128,128,128,0.2) 75%, rgba(128,128,128,0.2)); +} + +:root.theme-dark, +:root.theme-light, +:root.theme-firebug { + --draw-call-background: #403800; + --interesting-call-background: #272740; +} + /* Reload and waiting notices */ .notice-container { margin-top: -50vh; - background-color: var(--theme-toolbar-background); - color: var(--theme-body-color); + color: var(--theme-body-color-alt); } #empty-notice > button { min-width: 30px; min-height: 28px; margin: 0; - list-style-image: url("profiler-stopwatch.svg"); + list-style-image: url("images/profiler-stopwatch.svg"); } #empty-notice > button .button-text { @@ -27,37 +40,23 @@ /* Snapshots pane */ -#snapshots-pane > tabs { - -moz-border-end: 1px solid; -} - -#snapshots-pane .devtools-toolbar { - -moz-border-end: 1px solid; - - -moz-border-end-color: #9C9CFF; /* Match the splitter color. */ +#snapshots-pane { + border-inline-end: 1px solid var(--theme-splitter-color); } #record-snapshot { - list-style-image: url("chrome://devtools/skin/profiler-stopwatch-tbutton.svg"); -} - -#record-snapshot:hover { - list-style-image: url("chrome://devtools/skin/profiler-stopwatch.svg"); + list-style-image: url("chrome://devtools/skin/images/profiler-stopwatch-tbutton.svg"); } -#record-snapshot[checked] { - list-style-image: url("chrome://devtools/skin/profiler-stopwatch-checked-tbutton.svg"); -} - -#record-snapshot[checked]:hover { - list-style-image: url("chrome://devtools/skin/profiler-stopwatch-checked.svg"); +#import-snapshot { + list-style-image: url("images/import.svg"); } /* Snapshots items */ .snapshot-item-thumbnail { image-rendering: -moz-crisp-edges; - background-image: linear-gradient(45deg, #504848 25%, transparent 25%, transparent 75%, #504848 75%, #504848), linear-gradient(45deg, #504848 25%, transparent 25%, transparent 75%, #504848 75%, #504848); + background-image: var(--checkerboard-pattern); background-size: 12px 12px, 12px 12px; background-position: 0px 0px, 6px 6px; background-repeat: repeat, repeat; @@ -68,11 +67,11 @@ } .snapshot-item-thumbnail { - background-color: #000000; + background-color: var(--theme-body-background); } .snapshot-item-details { - -moz-padding-start: 6px; + padding-inline-start: 6px; } .snapshot-item-calls { @@ -80,11 +79,6 @@ font-size: 80%; } -.snapshot-item-calls, -.snapshot-item-save { - color: var(--theme-body-color); -} - .snapshot-item-save { padding-bottom: 2px; font-size: 90%; @@ -92,7 +86,7 @@ .snapshot-item-calls, .snapshot-item-save { - color: #A09090; /* Foreground (Text) - Grey */ + color: var(--theme-body-color-alt); } .snapshot-item-save { @@ -116,57 +110,24 @@ /* Debugging pane controls */ -#debugging-controls .devtools-toolbarbutton > .toolbarbutton-icon { - width: 16px; - height: 16px; -} - #resume { - list-style-image: url("debugger-play.png"); - -moz-image-region: rect(0px,32px,16px,16px); + list-style-image: url("images/play.svg"); } #step-over { - list-style-image: url("debugger-step-over.png"); + list-style-image: url("images/debugger-step-over.svg"); } #step-in { - list-style-image: url("debugger-step-in.png"); + list-style-image: url("images/debugger-step-in.svg"); } #step-out { - list-style-image: url("debugger-step-out.png"); -} - -@media (min-resolution: 1.1dppx) { - #resume { - list-style-image: url(debugger-play@2x.png); - -moz-image-region: rect(0px,64px,32px,32px); - } - - #step-over { - list-style-image: url(debugger-step-over@2x.png); - } - - #step-in { - list-style-image: url(debugger-step-in@2x.png); - } - - #step-out { - list-style-image: url(debugger-step-out@2x.png); - } -} - -#debugging-controls > toolbarbutton { - transition: opacity 0.15s ease-in-out; -} - -#debugging-controls > toolbarbutton[disabled=true] { - opacity: 0.5; + list-style-image: url("images/debugger-step-out.svg"); } #calls-slider { - -moz-padding-end: 24px; + padding-inline-end: 24px; } #calls-slider .scale-slider { @@ -186,14 +147,11 @@ background: transparent; } -#calls-list .side-menu-widget-item { - padding: 0; -} - /* Calls list items */ #calls-list .side-menu-widget-item { - border-color: #504848; + padding: 0; + border-color: var(--theme-splitter-color); border-bottom-color: transparent; } @@ -202,40 +160,28 @@ } .call-item-view[draw-call] { - background-color: #403800; + background-color: var(--draw-call-background); } .call-item-view[interesting-call] { - background-color: #272740; + background-color: var(--interesting-call-background); } .call-item-gutter { - width: calc(3em + 22px); - -moz-padding-start: 22px; - -moz-padding-end: 4px; + width: calc(var(--gutter-width) + var(--gutter-padding-start)); + padding-inline-start: var(--gutter-padding-start); + padding-inline-end: 4px; padding-top: 2px; padding-bottom: 2px; - -moz-border-end: 1px solid; - -moz-margin-end: 6px; + border-inline-end: 1px solid var(--theme-splitter-color); + margin-inline-end: 6px; + background-color: var(--theme-sidebar-background); + color: var(--theme-content-color3); } .selected .call-item-gutter { - background-image: url("editor-debug-location.png"); - background-repeat: no-repeat; - background-position: 6px center; - background-size: 12px; -} - -@media (min-resolution: 1.1dppx) { - .selected .call-item-gutter { - background-image: url("editor-debug-location@2x.png"); - } -} - -.call-item-gutter { - background-color: var(--theme-contrastsidebar-background); - color: var(--theme-contrastsidebar-color); - border-color: var(--theme-contrastsidebar-bordercolor); + background-color: #008484; + color: #000000; } .call-item-index { @@ -251,11 +197,12 @@ } .call-item-location { - -moz-padding-start: 2px; - -moz-padding-end: 6px; + padding-inline-start: 2px; + padding-inline-end: 6px; text-align: end; cursor: pointer; color: var(--theme-highlight-bluegrey); + border-color: var(--theme-splitter-color); } .call-item-location:hover { @@ -267,12 +214,8 @@ text-decoration: underline; } -.call-item-location { - border-color: #A09090; -} - .call-item-stack { - -moz-padding-start: calc(3em + 22px); + padding-inline-start: calc(var(--gutter-width) + var(--gutter-padding-start)); padding-bottom: 10px; } @@ -286,8 +229,8 @@ } .call-item-stack-fn-location { - -moz-padding-start: 2px; - -moz-padding-end: 6px; + padding-inline-start: 2px; + padding-inline-end: 6px; text-align: end; cursor: pointer; text-decoration: underline; @@ -313,16 +256,13 @@ /* Rendering preview */ #screenshot-container { - background-image: linear-gradient(45deg, #504848 25%, transparent 25%, transparent 75%, #504848 75%, #504848), linear-gradient(45deg, #504848 25%, transparent 25%, transparent 75%, #504848 75%, #504848); + background-color: var(--theme-body-background); + background-image: var(--checkerboard-pattern); background-size: 30px 30px, 30px 30px; background-position: 0px 0px, 15px 15px; background-repeat: repeat, repeat; } -#screenshot-container { - background-color: #000000; -} - @media (min-width: 701px) { #screenshot-container { width: 30vw; @@ -363,17 +303,18 @@ /* Snapshot filmstrip */ #snapshot-filmstrip { + border-top: 1px solid var(--theme-splitter-color); overflow: hidden; } #snapshot-filmstrip { - border-top: 1px solid #000; color: var(--theme-body-color); } .filmstrip-thumbnail { image-rendering: -moz-crisp-edges; - background-image: linear-gradient(45deg, #504848 25%, transparent 25%, transparent 75%, #504848 75%, #504848), linear-gradient(45deg, #504848 25%, transparent 25%, transparent 75%, #504848 75%, #504848); + background-color: var(--theme-body-background); + background-image: var(--checkerboard-pattern); background-size: 12px 12px, 12px 12px; background-position: 0px -1px, 6px 5px; background-repeat: repeat, repeat; @@ -381,6 +322,7 @@ cursor: pointer; padding-top: 1px; padding-bottom: 1px; + border-inline-end: 1px solid var(--theme-splitter-color); transition: opacity 0.1s ease-in-out; } @@ -388,14 +330,6 @@ transform: scaleY(-1); } -.filmstrip-thumbnail { - background-color: #000000; -} - -.filmstrip-thumbnail { - -moz-border-end: 1px solid var(--theme--contrastsidebar-bordercolor) -} - #snapshot-filmstrip > .filmstrip-thumbnail:hover, #snapshot-filmstrip:not(:hover) > .filmstrip-thumbnail[highlighted] { border: 1px solid var(--theme-highlight-blue);