restyled .dropdown, reloadStyles changes
This commit is contained in:
parent
2a01b11ace
commit
b62bf9023c
3 changed files with 20 additions and 2 deletions
4
src/renderer/less/bootstrap.less
vendored
4
src/renderer/less/bootstrap.less
vendored
|
@ -35,10 +35,12 @@
|
||||||
color: #212529;
|
color: #212529;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background-color: #fff;
|
background-color: var(--color1);
|
||||||
background-clip: padding-box;
|
background-clip: padding-box;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.15);
|
border: 1px solid rgba(0, 0, 0, 0.15);
|
||||||
border-radius: 0.25rem;
|
border-radius: 0.25rem;
|
||||||
|
box-shadow: var(--mediaItemShadow), var(--mediaItemShadow-ShadowSubtle);
|
||||||
|
backdrop-filter: var(--glassFilter);
|
||||||
}
|
}
|
||||||
.dropdown-menu[data-bs-popper] {
|
.dropdown-menu[data-bs-popper] {
|
||||||
top: 100%;
|
top: 100%;
|
||||||
|
|
|
@ -582,7 +582,7 @@ const app = new Vue({
|
||||||
this.setTheme(this.cfg.visual.theme)
|
this.setTheme(this.cfg.visual.theme)
|
||||||
}
|
}
|
||||||
if (this.cfg.visual.styles.length != 0) {
|
if (this.cfg.visual.styles.length != 0) {
|
||||||
this.reloadStyles()
|
await this.reloadStyles()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.platform == "darwin") {
|
if (this.platform == "darwin") {
|
||||||
|
@ -765,6 +765,9 @@ const app = new Vue({
|
||||||
ipcRenderer.on('theme-update', (event, arg) => {
|
ipcRenderer.on('theme-update', (event, arg) => {
|
||||||
less.refresh(true, true, true)
|
less.refresh(true, true, true)
|
||||||
self.setTheme(self.cfg.visual.theme, true)
|
self.setTheme(self.cfg.visual.theme, true)
|
||||||
|
if (app.cfg.visual.styles.length != 0) {
|
||||||
|
app.reloadStyles()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
ipcRenderer.on('SoundCheckTag', (event, tag) => {
|
ipcRenderer.on('SoundCheckTag', (event, tag) => {
|
||||||
|
@ -986,6 +989,7 @@ const app = new Vue({
|
||||||
less.registerStylesheetsImmediately()
|
less.registerStylesheetsImmediately()
|
||||||
less.refresh(true, true, true)
|
less.refresh(true, true, true)
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
return
|
||||||
},
|
},
|
||||||
macOSEmu() {
|
macOSEmu() {
|
||||||
this.chrome.forceDirectives["macosemu"] = {
|
this.chrome.forceDirectives["macosemu"] = {
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
--songProgressBackground: #333;
|
--songProgressBackground: #333;
|
||||||
--textColor: #eee;
|
--textColor: #eee;
|
||||||
--replayGradient: linear-gradient(45deg, hsl(248deg 58% 29%), hsl(13deg 41% 42%));
|
--replayGradient: linear-gradient(45deg, hsl(248deg 58% 29%), hsl(13deg 41% 42%));
|
||||||
|
--glassFilter: blur(16px) saturate(180%);
|
||||||
}
|
}
|
||||||
|
|
||||||
*:focus-visible {
|
*:focus-visible {
|
||||||
|
@ -238,6 +239,17 @@ input[type="text"], input[type="number"] {
|
||||||
opacity: 0.70;
|
opacity: 0.70;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.dropdown-item {
|
||||||
|
color: var(--textColor);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: var(--selected);
|
||||||
|
color: var(--textColor);
|
||||||
|
}
|
||||||
|
&:active {
|
||||||
|
background-color: var(--selected-click);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.bg-artwork {
|
.bg-artwork {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue