Skip to content

Commit

Permalink
search favorite albums, tracks; reworked search ui generally
Browse files Browse the repository at this point in the history
  • Loading branch information
zeropointnine committed Sep 9, 2021
1 parent cb0571c commit d4a433d
Show file tree
Hide file tree
Showing 19 changed files with 607 additions and 305 deletions.
18 changes: 9 additions & 9 deletions dist/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ echo '************************************************'

pkg ../package.json

mv hqpwv-node16-macos hqpwv-server-0-9-4-macos
mv hqpwv-node14-win.exe hqpwv-server-0-9-4-win.exe
mv hqpwv-node16-linux hqpwv-server-0-9-4-linux.bin
mv hqpwv-node16-macos hqpwv-server-0-9-5-macos
mv hqpwv-node14-win.exe hqpwv-server-0-9-5-win.exe
mv hqpwv-node16-linux hqpwv-server-0-9-5-linux.bin

zip hqpwv-server-0-9-4-macos.zip hqpwv-server-0-9-4-macos
zip hqpwv-server-0-9-4-win.exe.zip hqpwv-server-0-9-4-win.exe
zip hqpwv-server-0-9-4-linux.exe.zip hqpwv-server-0-9-4-linux.bin
zip hqpwv-server-0-9-5-macos.zip hqpwv-server-0-9-5-macos
zip hqpwv-server-0-9-5-win.zip hqpwv-server-0-9-5-win.exe
zip hqpwv-server-0-9-5-linux.zip hqpwv-server-0-9-5-linux.bin

# rm hqpwv-server-0-9-4-macos
# rm hqpwv-server-0-9-4-win.exe
# rm hqpwv-server-0-9-4-linux.bin
# rm hqpwv-server-0-9-5-macos
# rm hqpwv-server-0-9-5-win.exe
# rm hqpwv-server-0-9-5-linux.bin
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hqpwv",
"version": "0.9.4",
"version": "0.9.5",
"description": "Remote control application for HQPlayer",
"bin": "server/server.js",
"homepage": "https://github.com/zeropointnine/hqpwv",
Expand Down
2 changes: 1 addition & 1 deletion scss/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ $app-standard-duration: 400ms;
color: var(--col-text);

// does nothing for chrome, safari
scrollbar-color: var(--col-listitem-selected-over) var(--col-listitem-less);
scrollbar-color: var(--col-text-less) var(--col-listitem-over);

// Mobile Chrome: Prevent light blue pressed state on tappable things
-webkit-tap-highlight-color: transparent;
Expand Down
5 changes: 2 additions & 3 deletions scss/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,15 @@
// ---

.textButton {
display: inline-block;
border-radius: 6px;
vertical-align: top;
height: 36px;
padding-top:8px;
padding-left:12px;
padding-right:12px;
font-size:13px;
font-weight: bold;
text-transform: uppercase;
line-height:36px;
text-align:center; // for when button is given hard-coded width
background-color: var(--col-listitem);
cursor:pointer;

Expand Down
107 changes: 79 additions & 28 deletions scss/library-view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ $marginUnitMobile: 6px;

.count {
margin-left: 10px;
padding-top:4px;
padding-top: 2px;
font-size: $font-size-smaller;
color: var(--col-text-least);
}
Expand Down Expand Up @@ -286,10 +286,12 @@ $marginUnitMobile: 6px;
#libraryAlbumOptionsView {
display:flex;
position:relative;
margin-left:auto;
}

#libraryOptionsButtons {
position:relative;
display:flex;
height:$icon-button-side;
&:before {
content: ' ';
Expand Down Expand Up @@ -357,31 +359,57 @@ $marginUnitMobile: 6px;
}
}

#librarySearchCloseButton {
display:none;
position:absolute;
right:16px;
}

// ---

#librarySearchOptionsView {
#librarySearchPanel {
display:none;
position:relative;
background-color: var(--col-listitem-less);
border:1px solid var(--col-listitem-selected-over);
margin: $space-unit $space-unit ($space-unit * 1.5) $space-unit;
padding: $space-unit $space-unit $space-unit $space-unit;
margin: ($space-unit / 2) ($space-unit * 1) ($space-unit * 1.5) $space-unit;
}

#librarySearchCloseButton {
position:absolute;
right:6px;
top:6px;
#artistsTabButton:before {
content: 'Artists'
}
#albumsTabButton:before {
content: 'Album titles'
}
#tracksTabButton:before {
content: 'Track titles'
}
@include mobile {
#artistsTabButton:before {
content: 'Artists'
}
#albumsTabButton:before {
content: 'Albums'
}
#tracksTabButton:before {
content: 'Tracks'
}
}

label {
display:block;
text-transform: uppercase;
font-size: $font-size-smaller;
font-weight: bold;
#searchPanelContent {
padding: 16px;
border-left: 1px solid var(--col-listitem-selected);
border-right: 1px solid var(--col-listitem-selected);
border-bottom: 1px solid var(--col-listitem-selected);

opacity: 0.66;
pointer-events: none;

&.isEnabled {
opacity: 1;
pointer-events: auto;
}
}

.inputLine {
margin-top: 16px;
display:flex;
}

Expand All @@ -400,6 +428,11 @@ label {
width:100%;

@include userSelect(auto);

&:disabled {
pointer-events:none;
opacity:0.66;
}
}
.lightTheme #librarySearchInput {
border:1px solid var(--col-listitem);
Expand All @@ -411,24 +444,42 @@ label {
margin-left:12px;
}

.controlsLine {
margin-top: 16px;
.isDisabled #libraryAlbumOptionsView {
pointer-events: none;
}

.searchFavoritesLine {
display:flex;
align-items:center;
margin-top:12px;
// justify-content: end;
}

#searchArtistCheckbox { }
#searchAlbumCheckbox {
margin-left:16px;
}
#searchTrackCheckbox {
margin-left:16px;
#albumFavoritesButton,
#trackFavoritesButton {
padding-top:7px; // ugh
color: var(--col-text-least);
background-color:transparent;
margin-right:12px;
border: 1px solid var(--col-listitem-over);
&.isSelected {
color:var(--col-text);
}
}

.isDisabled #libraryAlbumOptionsView {
pointer-events: none;
#albumFavoritesButton:before {
content: 'Favorites albums';
}
#trackFavoritesButton:before {
content: 'Favorites tracks';
}
@include mobile {
#albumFavoritesButton:before {
content: 'Fav. albums';
}
#trackFavoritesButton:before {
content: 'Fav. tracks';
}
}

// ---

// rem, container is flex wrap
Expand Down
1 change: 1 addition & 0 deletions scss/settings-both.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ select * {
}

.savePresetLine {
display:flex;
margin-left:$indent-left;
@include mobile {
margin-left:0;
Expand Down
7 changes: 7 additions & 0 deletions scss/shared.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
transition: none !important;
}

label {
display:block;
text-transform: uppercase;
font-size: $font-size-smaller;
font-weight: bold;
}

.colorAccent {
color: var(--col-accent);
}
Expand Down
44 changes: 44 additions & 0 deletions scss/widgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,50 @@
height: 30px;
}

// ---
// tab bar

.tabBar {
display:flex;
}

.tabButton {
border-top-left-radius: 6px;
border-top-right-radius: 6px;
height: 36px;
padding-top:5px;
padding-left:12px;
padding-right:12px;
font-size:13px;
font-weight: bold;
text-transform: uppercase;

color:var(--col-text-least);
border-bottom: 1px solid var(--col-listitem-selected);
border-left: 1px solid var(--col-listitem-bg);
border-right: 1px solid var(--col-listitem-bg);
border-top: 1px solid var(--col-listitem-bg);
cursor:pointer;
&.isSelected {
color:var(--col-text);
border-bottom: 1px solid var(--col-bg);
border-left: 1px solid var(--col-listitem-selected);
border-right: 1px solid var(--col-listitem-selected);
border-top: 1px solid var(--col-listitem-selected);
pointer-events:none;
}
&:hover {
color:var(--col-text-less);
}
}

.tabBarSpacer {
flex: 1;
border-bottom: 1px solid var(--col-listitem-selected);
}

// ---

.spinner {
&:before {
content: ' ';
Expand Down
Loading

0 comments on commit d4a433d

Please sign in to comment.