X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fperformance.css;h=b53bda6e522f61873af6d5069bc9abf24f23f6e2;hb=a5cb6e534c9872ab3dc646ab44fa35b61775537d;hp=98acfe047b5ecb9b75ceca193635a6491facc3b5;hpb=b3bf08b110943f4abc9642b613f0dcb078c22b0b;p=themes.git diff --git a/LCARStrek/browser/devtools/performance.css b/LCARStrek/browser/devtools/performance.css index 98acfe04..b53bda6e 100644 --- a/LCARStrek/browser/devtools/performance.css +++ b/LCARStrek/browser/devtools/performance.css @@ -19,6 +19,10 @@ -moz-border-end-color: var(--theme-splitter-color); } +#performance-toolbar-control-other { + -moz-padding-end: 5px; +} + #performance-toolbar-controls-detail-views > toolbarbutton { min-width: 0; } @@ -28,6 +32,52 @@ -moz-padding-end: 8px; } +#filter-button { + list-style-image: url(timeline-filter.svg#filter); + min-width: 24px; +} + +#filter-button[disabled] { + list-style-image: url(timeline-filter.svg#filter-disabled); +} + +#filter-button:not([disabled]):hover, +#filter-button:not([disabled]):hover:active, +#filter-button[open] { + list-style-image: url(timeline-filter.svg#filter-open); +} + +#performance-filter-menupopup > menuitem:before { + content: ""; + display: block; + width: 8px; + height: 8px; + margin: 0 8px; + border-radius: 1px; +} + +#filter-button { + list-style-image: url(timeline-filter.svg#filter); + min-width: 24px; +} + +#filter-button[disabled] { + list-style-image: url(timeline-filter.svg#filter-disabled); +} + +#filter-button[open] { + list-style-image: url(timeline-filter.svg#filter-open); +} + +#performance-filter-menupopup > menuitem:before { + content: ""; + display: block; + width: 8px; + height: 8px; + margin: 0 8px; + border-radius: 1px; +} + /* Recording Notice */ #performance-view .notice-container { @@ -43,9 +93,19 @@ margin: 0; } +#performance-view .notice-container vbox { + text-align: center; +} + /* Overview Panel */ .record-button { + list-style-image: url(profiler-stopwatch-tbutton.svg); +} + +#empty-notice > .record-button, +.record-button:hover, +.record-button:hover:active { list-style-image: url(profiler-stopwatch.svg); } @@ -71,16 +131,40 @@ list-style-image: url(performance-icons.svg#details-waterfall); } +#select-waterfall-view:hover, +#select-waterfall-view:hover:active, +#select-waterfall-view[checked] { + list-style-image: url(performance-icons.svg#details-waterfall-active); +} + #select-js-calltree-view, #select-memory-calltree-view { list-style-image: url(performance-icons.svg#details-call-tree); } +#select-js-calltree-view:hover, +#select-js-calltree-view:hover:active, +#select-js-calltree-view[checked], +#select-memory-calltree-view:hover, +#select-memory-calltree-view:hover:active, +#select-memory-calltree-view[checked] { + list-style-image: url(performance-icons.svg#details-call-tree-active); +} + #select-js-flamegraph-view, #select-memory-flamegraph-view { list-style-image: url(performance-icons.svg#details-flamegraph); } +#select-js-flamegraph-view:hover, +#select-js-flamegraph-view:hover:active, +#select-js-flamegraph-view[checked], +#select-memory-flamegraph-view:hover, +#select-memory-flamegraph-view:hover:active, +#select-memory-flamegraph-view[checked] { + list-style-image: url(performance-icons.svg#details-flamegraph-active); +} + /* Profile call tree */ .call-tree-cells-container { @@ -89,8 +173,6 @@ overflow: auto; } -.call-tree-cells-container[allocations-hidden] .call-tree-cell[type="allocations"], -.call-tree-cells-container[allocations-hidden] .call-tree-cell[type="self-allocations"], .call-tree-cells-container[categories-hidden] .call-tree-category { display: none; } @@ -124,7 +206,7 @@ .call-tree-cell[type="allocations"], .call-tree-header[type="self-allocations"], .call-tree-cell[type="self-allocations"] { - width: 7vw; + width: 9vw; } .call-tree-header[type="function"], @@ -200,11 +282,11 @@ text-decoration: underline; } -.call-tree-url { +.call-tree-url, .tree-widget-item:not(.theme-selected) .opt-url { color: var(--theme-highlight-blue); } -.call-tree-line { +.call-tree-line, .tree-widget-item:not(.theme-selected) .opt-line { color: var(--theme-highlight-orange); } @@ -339,7 +421,6 @@ height: 8px; -moz-margin-start: 8px; -moz-margin-end: 6px; - border: 1px solid; border-radius: 1px; } @@ -350,9 +431,8 @@ .waterfall-marker-bar { height: 9px; - border: 1px solid; - border-radius: 1px; transform-origin: left center; + border-radius: 1px; } .waterfall-marker-container.selected > .waterfall-sidebar, @@ -361,11 +441,6 @@ color: var(--theme-selection-color); } -.waterfall-marker-container.selected .waterfall-marker-bullet, -.waterfall-marker-container.selected .waterfall-marker-bar { - border-color: initial !important; -} - .waterfall-marker-location { color: #3333FF; } @@ -385,10 +460,40 @@ .marker-details-bullet { width: 8px; height: 8px; - border: 1px solid; border-radius: 1px; } +#performance-filter-menupopup > menuitem.highlight-pink:before, +.marker-details-bullet.highlight-pink, +.waterfall-marker-bar.highlight-pink, +.waterfall-marker-bullet.highlight-pink { + background-color: var(--theme-highlight-pink); +} +#performance-filter-menupopup > menuitem.highlight-bluegrey:before, +.marker-details-bullet.highlight-bluegrey, +.waterfall-marker-bar.highlight-bluegrey, +.waterfall-marker-bullet.highlight-bluegrey { + background-color: var(--theme-highlight-bluegrey); +} +#performance-filter-menupopup > menuitem.highlight-green:before, +.marker-details-bullet.highlight-green, +.waterfall-marker-bar.highlight-green, +.waterfall-marker-bullet.highlight-green { + background-color: var(--theme-highlight-green); +} +#performance-filter-menupopup > menuitem.highlight-lightorange:before, +.marker-details-bullet.highlight-lightorange, +.waterfall-marker-bar.highlight-lightorange, +.waterfall-marker-bullet.highlight-lightorange { + background-color: var(--theme-highlight-lightorange); +} +#performance-filter-menupopup > menuitem.highlight-red:before, +.marker-details-bullet.highlight-red, +.waterfall-marker-bar.highlight-red, +.waterfall-marker-bullet.highlight-red { + background-color: var(--theme-highlight-red); +} + #waterfall-details > * { padding-top: 3px; } @@ -601,3 +706,124 @@ call-tree-item:not([origin="content"]) .call-tree-line { transform: scale(0.75); transform-origin: center right; } + +/** + * JIT View + */ + +#jit-optimizations-view { + width: 350px; + overflow-x: hidden; + overflow-y: auto; + min-width: 200px; +} + +/* override default styles for tree widget */ +#jit-optimizations-view .tree-widget-empty-text { + font-size: inherit; + padding: 0px; + margin: 8px; +} + +#jit-optimizations-view:not(.empty) .tree-widget-empty-text { + display: none; +} + +#jit-optimizations-toolbar { + height: 18px; + min-height: 0px; /* override .devtools-toolbar min-height */ +} + +.jit-optimizations-title { + margin: 0px 4px; + font-weight: 600; +} + +#jit-optimizations-raw-view { + font-size: 90%; +} + +/* override default .tree-widget-item line-height */ +#jit-optimizations-raw-view .tree-widget-item { + line-height: 20px !important; + display: block; + overflow: hidden; +} + +#jit-optimizations-raw-view .tree-widget-item[level="1"] { + font-weight: 600; +} + +#jit-optimizations-view .opt-ion-type-site { + -moz-margin-start: 4px !important; + opacity: 0.6; +} + +#jit-optimizations-view .opt-outcome::before { + content: "→"; + margin: 4px 0px; + color: var(--theme-body-color); +} +#jit-optimizations-view .theme-selected .opt-outcome::before { + color: var(--theme-selection-color); +} + +#jit-optimizations-view .tree-widget-item:not(.theme-selected) .opt-outcome[outcome=success] { + color: var(--theme-highlight-green); +} +#jit-optimizations-view .tree-widget-item:not(.theme-selected) .opt-outcome[outcome=failure] { + color: var(--theme-highlight-red); +} +#jit-optimizations-view .tree-widget-container { + -moz-margin-end: 0px; +} +#jit-optimizations-view .tree-widget-container > li, +#jit-optimizations-view .tree-widget-children > li { + overflow: hidden; +} + +.opt-line::before { + content: ":"; + color: var(--theme-highlight-orange); +} +.theme-selected .opt-line::before { + color: var(--theme-selection-color); +} +.opt-line.header-line::before { + color: var(--theme-body-color); +} +#jit-optimizations-view.empty .opt-line.header-line::before { + display: none; +} + +.opt-url { + -moz-margin-start: 4px !important; +} +.opt-url:hover { + text-decoration: underline; +} +.opt-url.debugger-link { + cursor: pointer; +} + +#jit-optimizations-view .opt-icon::before { + content: ""; + background-image: url(chrome://browser/skin/devtools/webconsole.png); + background-repeat: no-repeat; + background-size: 48px 40px; + margin: 5px 6px 0 0; + width: 8px; + height: 8px; + max-height: 8px; + display: inline-block; +} + +#jit-optimizations-view .opt-icon[severity=warning]::before { + background-position: -16px -16px; +} + +@media (min-resolution: 2dppx) { + #jit-optimizations-view .opt-icon::before { + background-image: url(chrome://browser/skin/devtools/webconsole@2x.png); + } +}