Skip to content

Commit ae8e195

Browse files
committed
Fix: Updated snackbar to Material 3
1 parent 50d8487 commit ae8e195

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1212

1313
### 🐛 Bug Fixes
1414

15+
- Improved local artwork assets support [`f21cccd`](https://github.com/ollm/OpenComic/commit/f21cccd9c2c943f7ad8735e106afff453397cfbf)
16+
- Some errors on Tracking feature [`50d8487`](https://github.com/ollm/OpenComic/commit/50d84874ea99cdace27f2c3bfc994b3338f23a42)
17+
- Updated snackbar to Material 3
1518

1619
## [v1.0.0-beta.1](https://github.com/ollm/OpenComic/releases/tag/v1.0.0-beta.1) (22-08-2023)
1720

templates/snackbar.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<div class="snackbar elevation6">
2-
<div class="snackbarText">{{snackbar.text}}</div>
1+
<div class="snackbar elevation-3">
2+
<div class="snackbar-text body-medium">{{snackbar.text}}</div>
33
<div class="snackbar-buttons">
44
{{#each snackbar.buttons}}
55
<div class="simple-button transparent"{{#if right}} style="right: {{right}}px"{{/if}}>

themes/material-design/actions.css

+14-4
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,8 @@
773773
.snackbars .snackbar
774774
{
775775
min-height: 48px;
776-
background-color: #323232;
777-
border-radius: 4px;
776+
background-color: var(--md-sys-color-inverse-surface);
777+
border-radius: 8px;
778778
position: fixed;
779779
bottom: 8px;
780780
left: 8px;
@@ -802,12 +802,12 @@
802802
animation-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
803803
}
804804

805-
.snackbars .snackbarText
805+
.snackbars .snackbar-text
806806
{
807807
padding: 14px 16px;
808808
line-height: 20px;
809809
font-size: 14px;
810-
color: #fff;
810+
color: var(--md-sys-color-inverse-on-surface);
811811
box-sizing: border-box;
812812
word-wrap: break-word;
813813
word-break: break-all;
@@ -826,6 +826,11 @@
826826
float: right;
827827
}
828828

829+
.snackbars .snackbar .simple-button.transparent > div
830+
{
831+
color: var(--md-sys-color-inverse-primary);
832+
}
833+
829834
/* Input */
830835
.input
831836
{
@@ -861,6 +866,11 @@
861866
float: left;
862867
transition: opacity 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
863868
cursor: pointer;
869+
font-family: var(--md-sys-typescale-label-large-font-family-name);
870+
font-style: var(--md-sys-typescale-label-large-font-family-style);
871+
font-weight: var(--md-sys-typescale-label-large-font-weight);
872+
font-size: var(--md-sys-typescale-label-large-font-size);
873+
letter-spacing: var(--md-sys-typescale-label-large-letter-spacing);
864874
}
865875

866876
.simple-button.disable

0 commit comments

Comments
 (0)