Skip to content

Commit

Permalink
AppSetttingsView: redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Mar 6, 2024
1 parent 5bf3256 commit 629e4e9
Show file tree
Hide file tree
Showing 15 changed files with 666 additions and 1,447 deletions.
78 changes: 50 additions & 28 deletions data/SettingsOption.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,70 +17,92 @@
* Boston, MA 02110-1301 USA.
*/

.card {
background-position: center;
background-repeat: no-repeat;
background-size: 112px 80px, cover;
min-width: 112px;
min-height: 80px;
settingspage.notifications .card {
background-position: center;
background-repeat: no-repeat;
background-size: 112px 80px, cover;
min-width: 112px;
min-height: 80px;
margin-top: 1em;
}

.card.bubbles {
settingspage.notifications .card.bubbles {
background-image:
url("resource:///io/elementary/settings/notifications/bubbles.svg"),
url("resource:///io/elementary/settings/notifications/bubble.svg"),
url("resource:///io/elementary/settings/notifications/dock.svg"),
linear-gradient(
to bottom,
alpha(@accent_color_300, 0.1),
alpha(@accent_color_500, 0.1)
shade(@selected_bg_color, 1.1),
@selected_bg_color
);
background-size: 40px 14px, 54px 12px, cover;
background-position: calc(100% - 3px) 12px, bottom, center;
}

.card.bubbles.dark {
settingspage.notifications .card.bubbles.dark {
background-image:
url("resource:///io/elementary/settings/notifications/bubbles-dark.svg"),
url("resource:///io/elementary/settings/notifications/bubble-dark.svg"),
url("resource:///io/elementary/settings/notifications/dock-dark.svg"),
linear-gradient(
to bottom,
alpha(@accent_color_300, 0.1),
alpha(@accent_color_500, 0.1)
shade(@selected_bg_color, 1.1),
@selected_bg_color
);
}

.card.sounds {
settingspage.notifications .card.bubbles:dir(rtl) {
background-position: 3px 12px, bottom, center;
}

settingspage.notifications .card.sounds {
background-image:
url("resource:///io/elementary/settings/notifications/sounds.svg"),
-gtk-icontheme("audio-volume-high-symbolic"),
url("resource:///io/elementary/settings/notifications/dock.svg"),
linear-gradient(
to bottom,
alpha(@accent_color_300, 0.1),
alpha(@accent_color_500, 0.1)
shade(@selected_bg_color, 1.1),
@selected_bg_color
);
background-size: 32px, 54px 12px, cover;
background-position: center, bottom, center;
color: @selected_fg_color;
}

.card.sounds.dark {
settingspage.notifications .card.sounds.dark {
background-image:
url("resource:///io/elementary/settings/notifications/sounds-dark.svg"),
-gtk-icontheme("audio-volume-high-symbolic"),
url("resource:///io/elementary/settings/notifications/dock-dark.svg"),
linear-gradient(
to bottom,
alpha(@accent_color_300, 0.1),
alpha(@accent_color_500, 0.1)
shade(@selected_bg_color, 1.1),
@selected_bg_color
);
}

.card.notify-center {
settingspage.notifications .card.notify-center {
background-image:
url("resource:///io/elementary/settings/notifications/notify-center.svg"),
url("resource:///io/elementary/settings/notifications/dock.svg"),
linear-gradient(
to bottom,
alpha(@accent_color_300, 0.1),
alpha(@accent_color_500, 0.1)
shade(@selected_bg_color, 1.1),
@selected_bg_color
);
background-size: 40px 55px, 54px 12px, cover;
background-position: calc(100% - 3px) 3px, bottom, center;
}

.card.notify-center.dark {
settingspage.notifications .card.notify-center.dark {
background-image:
url("resource:///io/elementary/settings/notifications/notify-center-dark.svg"),
url("resource:///io/elementary/settings/notifications/dock-dark.svg"),
linear-gradient(
to bottom,
alpha(@accent_color_300, 0.1),
alpha(@accent_color_500, 0.1)
shade(@selected_bg_color, 1.1),
@selected_bg_color
);
}

settingspage.notifications .card.notify-center:dir(rtl) {
background-position: 3px 3px, bottom, center;
}
82 changes: 82 additions & 0 deletions data/bubble-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
155 changes: 155 additions & 0 deletions data/bubble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 629e4e9

Please sign in to comment.