XF 2.3 How to adjust Alert background colors?

KensonPlays

Well-known member
I'm trying to color this background for read alerts, so they're readable. I can't seem to find which of the many sections for style customizations have this setting? Any help?

1723510870472.webp
 
Hello
Less:
// read color
.menu-row.menu-row--separated {
    background: red;
}

// hover color
.menu-row.menu-row--separated:hover {
    background: blue;
}

// unread color
.menu-row.menu-row--separated.is-unread {
    background: black;
}
 
Hello
Less:
// read color
.menu-row.menu-row--separated {
    background: red;
}

// hover color
.menu-row.menu-row--separated:hover {
    background: blue;
}

// unread color
.menu-row.menu-row--separated.is-unread {
    background: black;
}
I can't use the new settings menu to have separate colors for light/dark?
 
But if you want to set custom colour then use this syntax for alternate style:
 
Well, what colour you want to use?
I can write the code for you...
I have lots of styles for various games the community plays, 9 right now so essentially 18 styles, I guess? Each with a day and night coloration and the same background.

This is the default theme's color palette though. Left being day/light, right being night/dark:
1723559217580.webp
 
Less:
.menu-row.menu-row--separated {
    // colour for the light variation
    background: #FFFFFF;
    .m-colorScheme({{ $xf.style.getAlternateStyleType() }}, {
        // colour for the dark variation
        background: #000000;
    });
}
 
Less:
.menu-row.menu-row--separated {
    // colour for the light variation
    background: #FFFFFF;
    .m-colorScheme({{ $xf.style.getAlternateStyleType() }}, {
        // colour for the dark variation
        background: #000000;
    });
}
Been busy lately, but I just tried copying and pasting that into extra.less. Ctrl F5 refreshed, no change.

Edit: Finally found the setting after weeks lol.... Style > Popup Menus.
 
Last edited:
Back
Top Bottom