MozillaZine

Styling Ctrl+Tab switcher (Linux)

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

Post Posted October 20th, 2016, 11:31 am

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

Post Posted October 23rd, 2016, 6:21 am

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

Post Posted October 30th, 2016, 4:07 am

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

Post Posted November 7th, 2016, 5:00 am

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;
}

Return to Firefox Support


Who is online

Users browsing this forum: Google [Bot] and 19 guests