some ui tweaks

- scrollbar collapse is now on chrome-top as show/hide library
- adjusted rollover effect for nav playback-buttons
This commit is contained in:
booploops 2022-06-03 04:22:09 -07:00
parent 0f1f6c1e8f
commit 6ddc59a4e5
9 changed files with 989 additions and 896 deletions

View file

@ -212,6 +212,8 @@
"podcast.episodes": "Episodes", "podcast.episodes": "Episodes",
"podcast.playEpisode": "Play Episode", "podcast.playEpisode": "Play Episode",
"podcast.website": "Podcast Website", "podcast.website": "Podcast Website",
"action.hideLibrary": "Hide Library",
"action.showLibrary": "Show Library",
"action.cut": "Cut", "action.cut": "Cut",
"action.paste": "Paste", "action.paste": "Paste",
"action.selectAll": "Select All", "action.selectAll": "Select All",

View file

@ -212,6 +212,12 @@
"podcast.episodes": "Episodes", "podcast.episodes": "Episodes",
"podcast.playEpisode": "Play Episode", "podcast.playEpisode": "Play Episode",
"podcast.website": "Podcast Website", "podcast.website": "Podcast Website",
"action.hideLibrary": "Hide Library",
"action.showLibrary": "Show Library",
"action.cut": "Cut",
"action.paste": "Paste",
"action.selectAll": "Select All",
"action.delete": "Delete",
"action.edit": "Edit", "action.edit": "Edit",
"action.done": "Done", "action.done": "Done",
"action.editTracklist": "Edit Tracklist", "action.editTracklist": "Edit Tracklist",
@ -592,11 +598,12 @@
"oobe.general.text": "", "oobe.general.text": "",
"oobe.audio.title": "Audio", "oobe.audio.title": "Audio",
"oobe.audio.subtitle": "", "oobe.audio.subtitle": "",
"oobe.audio.text": "", "oobe.audio.text": "Cider features a custom tuned and designed audio stack that delivers a rich high quality audio experience.\nFeaturing Cider Adrenaline, Atmosphere Realizer, and Spatialized Audio.\nTo enable this functionality \"Advanced Audio Functionality\" must be enabled.\nEnabling Advanced Audio Functionality will give you access to these enhancements in the Cider Audio Labs, found in the app settings.",
"oobe.audio.advancedFunctionality": "", "oobe.audio.advancedFunctionality": "",
"oobe.visual.title": "Visual", "oobe.visual.title": "Visual",
"oobe.visual.subtitle": "", "oobe.visual.subtitle": "",
"oobe.visual.text": "", "oobe.visual.text": "",
"oobe.visual.layout.text": "Cider features two window different layouts.\nMaverick is an iTunes like layout with the player at the top of the window.\nMojave is a new spin created by the Cider Collective.\n\nYou can change the layout any time in the settings.",
"oobe.visual.suggestingThemes": "Theming is a great way to personalize your experience. Here are a few we suggest: ", "oobe.visual.suggestingThemes": "Theming is a great way to personalize your experience. Here are a few we suggest: ",
"oobe.visual.suggestingThemes.subtext": "(These themes will be downloaded from GitHub)", "oobe.visual.suggestingThemes.subtext": "(These themes will be downloaded from GitHub)",
"oobe.visual.suggestingThemes.default": "Cider", "oobe.visual.suggestingThemes.default": "Cider",

View file

@ -135,7 +135,7 @@ document.addEventListener("musickitloaded", function () {
function waitForApp() { function waitForApp() {
if (typeof app.init !== "undefined") { if (typeof app.init !== "undefined") {
app.init(); app.init();
if (app.cfg.visual.window_background_style == "mica") { if (app.cfg.visual.window_background_style == "mica" && !app.isDev) {
app.spawnMica(); app.spawnMica();
} }
} else { } else {

View file

@ -6,7 +6,7 @@
@font-face { @font-face {
font-family: "codicon"; font-family: "codicon";
font-display: block; font-display: block;
src: url("codicon.ttf") format("truetype"); src: url("./codicon.ttf?f06865699f1720ee6ca6e0a4aa084d76") format("truetype");
} }
.codicon[class*='codicon-'] { .codicon[class*='codicon-'] {
@ -43,6 +43,10 @@
opacity: 0.5; opacity: 0.5;
} }
.codicon-modifier-hidden {
opacity: 0;
}
/* custom speed & easing for loading icon */ /* custom speed & easing for loading icon */
.codicon-loading { .codicon-loading {
animation-duration: 1s !important; animation-duration: 1s !important;
@ -551,3 +555,7 @@
.codicon-arrow-circle-left:before { content: "\ebfd" } .codicon-arrow-circle-left:before { content: "\ebfd" }
.codicon-arrow-circle-right:before { content: "\ebfe" } .codicon-arrow-circle-right:before { content: "\ebfe" }
.codicon-arrow-circle-up:before { content: "\ebff" } .codicon-arrow-circle-up:before { content: "\ebff" }
.codicon-layout-sidebar-right-off:before { content: "\ec00" }
.codicon-layout-panel-off:before { content: "\ec01" }
.codicon-layout-sidebar-left-off:before { content: "\ec02" }
.codicon-blank:before { content: "\ec03" }

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -530,18 +530,15 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
&.collapseTab { &.collapseTab {
display:flex; display:flex;
padding:0px; padding:6px;
border:0;
>button { >button {
appearance: none; appearance: none;
border:0px;
width: 100%; width: 100%;
position: relative; position: relative;
padding: 12px; padding-left: 40px;
padding-left: 32px;
text-align: left; text-align: left;
font-family: inherit; font-family: inherit;
background-color: var(--color2);
color: var(--textColor);
&:hover { &:hover {
background-color: var(--selected); background-color: var(--selected);
} }
@ -549,17 +546,17 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
background-color: var(--selected-click); background-color: var(--selected-click);
} }
&:after { &:after {
content: ''; content: '';
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
width: 32px; width: 46px;
height: 100%; height: 100%;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
font-weight: bold; font-weight: bold;
font-size: 1.2em; font-size: 1em;
font-family: "codicon"; font-family: "codicon";
} }
} }
@ -1019,20 +1016,30 @@ input[type=range].web-slider::-webkit-slider-runnable-track {
align-items: center; align-items: center;
-webkit-app-region: no-drag; -webkit-app-region: no-drag;
height: auto; height: auto;
}
.app-chrome .app-chrome-item.generic { &.collapseLibrary {
.md-btn {
font-family: "codicon";
font-size: 1em;
padding: 5px 12px;
background: transparent;
border: 0;
}
}
&.generic {
width: 50px; width: 50px;
opacity: 0.70; opacity: 0.70;
} }
.app-chrome .app-chrome-item.volume { &.volume {
width: 100px; width: 100px;
margin-right: 6px; margin-right: 6px;
} }
.app-chrome .app-chrome-item.search { &.search {
margin-right: 6px; margin-right: 6px;
}
} }
.volume-button { .volume-button {

View file

@ -53,6 +53,16 @@
<%- include('../svg/chevron-right.svg') %> <%- include('../svg/chevron-right.svg') %>
</button> </button>
</div> </div>
<div class="app-chrome-item" v-if="cfg.advanced.experiments.includes('collapseSidebar')">
<button
class="playback-button collapseLibrary"
v-b-tooltip.hover
:title="chrome.sidebarCollapsed ? getLz('action.showLibrary') : getLz('action.hideLibrary')"
@click="chrome.sidebarCollapsed = !chrome.sidebarCollapsed">
<span v-if="chrome.sidebarCollapsed"></span>
<span v-else></span>
</button>
</div>
<div <div
class="vdiv display--large" class="vdiv display--large"
v-if="getThemeDirective('windowLayout') != 'twopanel'" v-if="getThemeDirective('windowLayout') != 'twopanel'"

View file

@ -183,11 +183,6 @@
</sidebar-playlist> </sidebar-playlist>
</template> </template>
</div> </div>
<div class="app-sidebar-footer collapseTab" v-if="cfg.advanced.experiments.includes('collapseSidebar')">
<button @click="chrome.sidebarCollapsed = !chrome.sidebarCollapsed">
Collapse
</button>
</div>
<div class="app-sidebar-footer display--small app-sidebar-footer--controls"> <div class="app-sidebar-footer display--small app-sidebar-footer--controls">
<div <div
class="app-playback-controls" class="app-playback-controls"