mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Make pageHeader transparency dependent on blur
This commit is contained in:
parent
a82979b2a1
commit
b03534bb92
@ -353,8 +353,7 @@ onUnmounted(() => {
|
|||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
background: var(--bg);
|
background: var(--pageHeader);
|
||||||
opacity: 0.85;
|
|
||||||
z-index: -2;
|
z-index: -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ function compile(theme: Theme): Record<string, string> {
|
|||||||
const arg = parseFloat(parts.shift());
|
const arg = parseFloat(parts.shift());
|
||||||
const color = getColor(parts.join("<"));
|
const color = getColor(parts.join("<"));
|
||||||
|
|
||||||
const ignoreAlphaForKeys = ["windowHeader", "acrylicPanel"];
|
const ignoreAlphaForKeys = ["windowHeader", "acrylicPanel", "pageHeader"];
|
||||||
|
|
||||||
switch (func) {
|
switch (func) {
|
||||||
case "darken":
|
case "darken":
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
panelBorder: '" solid 1px var(--divider)',
|
panelBorder: '" solid 1px var(--divider)',
|
||||||
acrylicPanel: ':alpha<0.5<@panel',
|
acrylicPanel: ':alpha<0.5<@panel',
|
||||||
windowHeader: ':alpha<0.85<@panel',
|
windowHeader: ':alpha<0.85<@panel',
|
||||||
|
pageHeader: ':alpha<0.85<@bg',
|
||||||
popup: ':lighten<3<@panel',
|
popup: ':lighten<3<@panel',
|
||||||
shadow: 'rgba(0, 0, 0, 0.3)',
|
shadow: 'rgba(0, 0, 0, 0.3)',
|
||||||
header: ':alpha<0.7<@panel',
|
header: ':alpha<0.7<@panel',
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
panelBorder: '" solid 1px var(--divider)',
|
panelBorder: '" solid 1px var(--divider)',
|
||||||
acrylicPanel: ':alpha<0.5<@panel',
|
acrylicPanel: ':alpha<0.5<@panel',
|
||||||
windowHeader: ':alpha<0.85<@panel',
|
windowHeader: ':alpha<0.85<@panel',
|
||||||
|
pageHeader: ':alpha<0.85<@bg',
|
||||||
popup: ':lighten<3<@panel',
|
popup: ':lighten<3<@panel',
|
||||||
shadow: 'rgba(0, 0, 0, 0.1)',
|
shadow: 'rgba(0, 0, 0, 0.1)',
|
||||||
header: ':alpha<0.7<@panel',
|
header: ':alpha<0.7<@panel',
|
||||||
|
Loading…
Reference in New Issue
Block a user