Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppSetttingsView: redesign #101

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading