Skip to content

Commit d535892

Browse files
committed
Native tooltip from nara only if native
This replaces the previous implementation completely. However there is no way to access it under 7/8 currently since it seems to always be native based there.
1 parent 6eb247c commit d535892

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

toolkit/content/xul.css

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,33 @@ tooltip:not([position]) {
412412

413413
/* Makes InfoBackground and InfoText use proper colors */
414414
@media (-moz-platform: windows) {
415-
tooltip {
416-
color-scheme: light;
415+
@media not (-moz-windows-non-native-menus) {
416+
tooltip {
417+
color-scheme: light;
418+
}
419+
}
420+
421+
@media (-moz-windows-non-native-menus) {
422+
tooltip {
423+
appearance: none;
424+
border: 1px solid;
425+
}
426+
427+
@media (-moz-windows-default-theme) {
428+
tooltip {
429+
background-color: #f9f9fb;
430+
color: black;
431+
border-color: #67676c;
432+
border-radius: 4px;
433+
}
434+
435+
@media (prefers-color-scheme: dark) {
436+
tooltip {
437+
background-color: #2b2a33;
438+
color: white;
439+
border-color: #f9f9fb;
440+
}
441+
}
417442
}
418443
}
419444

0 commit comments

Comments
 (0)