Skip to content

Commit

Permalink
Themes: Improve styles and add new "Snow" theme based on nordtheme.com
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Mayer <michael@photoprism.app>
  • Loading branch information
lastzero committed Jan 5, 2023
1 parent a356457 commit 93251d7
Show file tree
Hide file tree
Showing 14 changed files with 282 additions and 28 deletions.
109 changes: 89 additions & 20 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions frontend/src/component/photo/toolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
:menu-props="{'maxHeight':346}"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
item-value="ID"
item-text="Name"
:items="countryOptions"
Expand All @@ -69,6 +70,7 @@
:menu-props="{'maxHeight':346}"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
item-value="ID"
item-text="Name"
:items="cameraOptions"
Expand All @@ -81,6 +83,7 @@
:label="$gettext('View')"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
:items="options.views"
@change="(v) => {setView(v)}">
</v-select>
Expand All @@ -91,6 +94,7 @@
:menu-props="{'maxHeight':400}"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
:items="options.sorting"
@change="(v) => {updateQuery({'order': v})}">
</v-select>
Expand All @@ -101,6 +105,7 @@
:menu-props="{'maxHeight':346}"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
item-value="value"
item-text="text"
:items="yearOptions()"
Expand All @@ -113,6 +118,7 @@
:menu-props="{'maxHeight':346}"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
item-value="value"
item-text="text"
:items="monthOptions()"
Expand All @@ -124,6 +130,7 @@
:label="labels.lens"
flat solo hide-details
color="secondary-dark"
background-color="secondary-light"
item-value="ID"
item-text="Model"
v-model="filter.lens"
Expand All @@ -136,6 +143,7 @@
:menu-props="{'maxHeight':346}"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
item-value="Slug"
item-text="Name"
:items="colorOptions()"
Expand All @@ -148,6 +156,7 @@
:menu-props="{'maxHeight':346}"
flat solo hide-details
color="secondary-dark"
background-color="secondary"
item-value="Slug"
item-text="Name"
:items="categoryOptions"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/css/themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import url("themes/neon.css");
@import url("themes/gemstone.css");
@import url("themes/carbon.css");
@import url("themes/snow.css");

/* General Styles */

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/css/themes/abyss.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ body.dark-theme.theme-abyss,
}

#photoprism.theme-abyss .theme--light.v-table tbody tr:hover {
background: #333333;
background: #342C43;
}

#photoprism.theme-abyss .theme--light.v-chip,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/css/themes/carbon.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ body.dark-theme.theme-carbon,
}

#photoprism.theme-carbon .theme--light.v-table tbody tr:hover {
background: #34314e;
background: #302c3d;
}

#photoprism.theme-carbon .theme--light.v-input--selection-controls.v-input--is-disabled .v-icon {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/css/themes/gemstone.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ body.dark-theme.theme-gemstone,
}

#photoprism.theme-gemstone .theme--light.v-table tbody tr:hover {
background: #666;
background: #47474b;
}

#photoprism.theme-gemstone .theme--light.v-chip,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/css/themes/grayscale.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body.dark-theme.theme-grayscale {
}

#photoprism.theme-grayscale .theme--light.v-table tbody tr:hover {
background: #666;
background: #555;
}

#photoprism.theme-grayscale .theme--light.v-chip,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/css/themes/shadow.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body.dark-theme.theme-shadow {
}

#photoprism.theme-shadow .theme--light.v-table tbody tr:hover {
background: #666;
background: #555;
}

#photoprism.theme-shadow .theme--light.v-chip,
Expand Down
Loading

0 comments on commit 93251d7

Please sign in to comment.