X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fdevtools%2Fnetmonitor.css;fp=LCARStrek%2Fbrowser%2Fdevtools%2Fnetmonitor.css;h=7c11898a5895cf33e21e2642793e9358dce99fc3;hp=88fc40897f1699c5a0ce08aeba17cdc25e3c714c;hb=2e389898f68ebe2e0fd7c7b50ead1dbd3c082405;hpb=936e60fe1e8ef7a38298736369448d66d0507842 diff --git a/LCARStrek/browser/devtools/netmonitor.css b/LCARStrek/browser/devtools/netmonitor.css index 88fc4089..7c11898a 100644 --- a/LCARStrek/browser/devtools/netmonitor.css +++ b/LCARStrek/browser/devtools/netmonitor.css @@ -9,6 +9,12 @@ window { /* === BEGIN netmonitor.inc.css === */ +:root.theme-dark, +:root.theme-light { + --table-splitter-color: #9C9CFF; + --table-zebra-background: rgba(255,159,0,0.1); +} + #requests-menu-empty-notice { margin: 0; padding: 12px; @@ -56,7 +62,7 @@ window { .requests-menu-header:not(:last-child), .requests-menu-subitem:not(:last-child) { - -moz-border-end: 1px solid #9C9CFF; + -moz-border-end: 1px solid var(--table-splitter-color); } .requests-menu-header:not(:last-child):-moz-locale-dir(rtl), @@ -145,7 +151,7 @@ window { } .requests-menu-icon { - outline: 1px solid #A09090; + outline: 1px solid var(--table-splitter-color); } .requests-menu-file { @@ -223,20 +229,20 @@ label.requests-menu-status-code { } box.requests-menu-status:not([code]) { - background-color: #A09090; /* dark grey */ + background-color: var(--theme-content-color2); } box.requests-menu-status[code="cached"] { - border: 2px solid #A09090; /* dark grey */ + border: 2px solid var(--theme-content-color2); background-color: transparent; } box.requests-menu-status[code^="1"] { - background-color: #9C9CFF; /* light blue */ + background-color: var(---theme-highlight-blue); } box.requests-menu-status[code^="2"] { - background-color: #008484; /* green */ + background-color: var(--theme-highlight-green); } /* 3xx are triangles */ @@ -246,18 +252,18 @@ box.requests-menu-status[code^="3"] { height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; - border-bottom: 10px solid #FF9F00; /* light orange */ + border-bottom: 10px solid var(--theme-highlight-lightorange); border-radius: 0; } /* 4xx and 5xx are squares - error codes */ box.requests-menu-status[code^="4"] { - background-color: #FF0000; /* red */ + background-color: var(--theme-highlight-red); border-radius: 0; /* squares */ } box.requests-menu-status[code^="5"] { - background-color: #6000CF; /* pink? */ + background-color: var(--theme-highlight-pink); border-radius: 0; transform: rotate(45deg); } @@ -373,6 +379,16 @@ box.requests-menu-status[code^="5"] { /* SideMenuWidget */ +#network-table .side-menu-widget-empty-text, +#network-table .side-menu-widget-container { + background-color: var(--theme-body-background); +} + +#network-table .side-menu-widget-item { + border-top-color: transparent; + border-bottom-color: transparent; +} + .side-menu-widget-item-contents { padding: 0px; } @@ -382,7 +398,11 @@ box.requests-menu-status[code^="5"] { } .side-menu-widget-item:not(.selected)[odd] { - background: rgba(255,159,0,0.1); + background-color: var(--table-zebra-background); +} + +.side-menu-widget-item:not(.selected):hover { + background-color: var(--theme-selection-background-semitransparent); } /* Network request details */ @@ -424,10 +444,17 @@ box.requests-menu-status[code^="5"] { /* Network request details tabpanels */ .tabpanel-content { - background-color: var(--theme-toolbar-background); + background-color: var(--theme-sidebar-background); +} + +.theme-dark .tabpanel-content { color: var(--theme-body-color); } +#headers-tabpanel { + background-color: var(--theme-toolbar-background); +} + /* Summary tabpanel */ .tabpanel-summary-container { @@ -563,9 +590,9 @@ box.requests-menu-status[code^="5"] { /* Footer */ #requests-menu-footer { - border-top: 1px solid #9C9CFF; padding-top: 3px; background-color: var(--theme-toolbar-background); + border-top: 1px solid var(--table-splitter-color); } .requests-menu-footer-button, @@ -589,9 +616,6 @@ box.requests-menu-status[code^="5"] { .requests-menu-footer-button { } -.requests-menu-footer-button:hover { -} - .requests-menu-footer-button:hover:active { } @@ -661,7 +685,7 @@ box.requests-menu-status[code^="5"] { #network-statistics-charts { min-height: 1px; - background-color: var(--theme-toolbar-background); + background-color: var(--theme-sidebar-background); } #network-statistics-charts .pie-chart-container {