Danke! Ich musste erstmal checken, wie und wo der Code einzufügen ist, nämlich hier:
%APPDATA%\Mozilla\Firefox\Profiles\[Dein Profil]\chrome\userChrome.css
Außerdem muss dieser Schalter umgelegt werden: toolkit.legacyUserProfileCustomizations.stylesheets
So funktioniert's. Die Vorlage war gut, ist mir allerdings ein wenig zu aggressiv mit den gelben Highlights und dem 100%igen Schwarz. Ich hätte es gerne so nah am Standard-Dark Theme von Firefox wie möglich. Deswegen habe ich den Code aus der Vorlage angepasst:
@-moz-document url("chrome://browser/content/places/bookmarksSidebar.xhtml") {
/* Apply the dark background to the main sidebar box and all its children */
#sidebar-box,
#sidebar-box *,
.sidebar-placesTreechildren,
#sidebar-search-container,
#placesList > treechildren {
background-color: #2B2A33 !important; /* Default Dark Theme background */
color: #FBFBFE !important; /* Default text color */
}
/* Style the text in the tree */
.sidebar-placesTreechildren {
color: #FBFBFE !important;
}
/* Style the search box inside the sidebar */
#sidebar-search-box {
background-color: #42414D !important; /* Darker field background */
color: #FBFBFE !important;
border-color: #52525E !important;
}
/* Change text color on hover */
treechildren::-moz-tree-cell-text(hover) {
color: #FBFBFE !important;
background-color: #52525E !important; /* Hover background color */
}
/* Style the selected item */
treechildren::-moz-tree-cell-text(selected) {
color: #FBFBFE !important;
background-color: #0F6BCB !important; /* Firefox blue selection color */
}
/* Style the separator lines */
treechildren::-moz-tree-separator {
color: #5B5B66 !important; /* Separator color */
}
/* Style the folder icons to be lighter */
treechildren::-moz-tree-image(container) {
fill: #FBFBFE !important;
color: #FBFBFE !important;
}
}
Alles anzeigen
Das Resultat sieht so aus:
-> Was muss ich tun, um die weißen Stellen (siehe rote Pfeile oben) auch noch einzufärben?
Es geht um die Sidebar-Überschrift, das Suchfeld, die Sidebar-Scroll-Leiste und die Hintergrundfarbe von Lesezeichen-Ordnern.