Styling Ctrl+Tab switcher (Linux)

User Help for Mozilla Firefox
Post Reply
korovospas
Posts: 2
Joined: October 20th, 2016, 11:26 am

Styling Ctrl+Tab switcher (Linux)

Post by korovospas »

Hi. Haven't found anything about how to style Ctrl+Tab switcher.
Image

Did it possible with Stylish?
Last edited by DanRaisch on October 20th, 2016, 1:42 pm, edited 1 time in total.
Reason: "(Linux)" added to subject line.
greenenemy
Posts: 10
Joined: April 21st, 2015, 3:00 am

Re: Styling Ctrl+Tab switcher (Linux)

Post by greenenemy »

Yes, you can do it with Stylish. https://userstyles.org/styles/8843/ctrl ... ground-fx3 <- This ia a little outdated but when you add some #id's from your version it should work. Ask here if you need further assistance.
korovospas
Posts: 2
Joined: October 20th, 2016, 11:26 am

Re: Styling Ctrl+Tab switcher (Linux)

Post by korovospas »

greenenemy wrote:Yes, you can do it with Stylish. https://userstyles.org/styles/8843/ctrl ... ground-fx3 <- This ia a little outdated but when you add some #id's from your version it should work. Ask here if you need further assistance.
Very fine, thanks! Currently i'm found that only styling for #ctrlTab-panel works. Transparency could be set for background, at least.
But styling for other #id's from https://dxr.mozilla.org/mozilla-beta/so ... rowser.xul not work. Hmmm.
greenenemy
Posts: 10
Joined: April 21st, 2015, 3:00 am

Re: Styling Ctrl+Tab switcher (Linux)

Post by greenenemy »

You can use these selectors: .ctrlTab-preview, .ctrlTab-preview:focus and .ctrlTab-preview-inner, .tabPreview-canvas, .ctrlTab-favicon-container , .ctrlTab-favicon and some others.
I found it with Browser toolbox and inspect element.

default values for firefox dev edition on win10:

Code: Select all

#ctrlTab-panel {
    -moz-appearance: none;
    background: hsla(0,0%,33%,.85);
    color: white;
    border-style: none;
    padding: 20px 10px 10px;
    font-weight: bold;
    text-shadow: 0 0 1px hsl(0,0%,12%), 0 0 2px hsl(0,0%,12%);
}

.ctrlTab-preview {
    -moz-binding: url("chrome://browser/content/browser-tabPreviews.xml#ctrlTab-preview");
}

.ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner {
    margin: -10px -10px 0;
}

.ctrlTab-preview-inner {
    padding: 8px;
    border: 2px solid transparent;
    border-radius: .5em;
}

tabPreview-canvas
element {
    max-width: 272px;
    min-width: 272px;
    max-height: 153px;
    min-height: 153px;
}

.ctrlTab-favicon-container {
    -moz-box-align: start;
    -moz-box-pack: start;
}

.ctrlTab-favicon[src] {
    background-color: white;
    width: 20px;
    height: 20px;
    padding: 2px;
}
Post Reply