mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-24 12:35:05 +00:00
add more font-weights so fonts are not rendered blurry
This commit is contained in:
parent
1131ccbf91
commit
5404036ee4
19 changed files with 37 additions and 36 deletions
|
|
@ -1,2 +1,5 @@
|
|||
Added:
|
||||
- `Report Bugs` and `Changelog` buttons to `Settings > About`
|
||||
- `Report Bugs` and `Changelog` buttons to `Settings > About`
|
||||
|
||||
Fixed:
|
||||
- Fonts looking blurry
|
||||
BIN
src/assets/glue-resources/fonts/GoogleSans-Black.ttf
Normal file
BIN
src/assets/glue-resources/fonts/GoogleSans-Black.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/GoogleSans-Bold.ttf
Normal file
BIN
src/assets/glue-resources/fonts/GoogleSans-Bold.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/GoogleSans-Light.ttf
Normal file
BIN
src/assets/glue-resources/fonts/GoogleSans-Light.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/GoogleSans-Medium.ttf
Normal file
BIN
src/assets/glue-resources/fonts/GoogleSans-Medium.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/GoogleSans-Regular.ttf
Normal file
BIN
src/assets/glue-resources/fonts/GoogleSans-Regular.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/GoogleSans-Thin.ttf
Normal file
BIN
src/assets/glue-resources/fonts/GoogleSans-Thin.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/assets/glue-resources/fonts/Roboto-Black.ttf
Normal file
BIN
src/assets/glue-resources/fonts/Roboto-Black.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/Roboto-Bold.ttf
Normal file
BIN
src/assets/glue-resources/fonts/Roboto-Bold.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/Roboto-Light.ttf
Normal file
BIN
src/assets/glue-resources/fonts/Roboto-Light.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/Roboto-Medium.ttf
Normal file
BIN
src/assets/glue-resources/fonts/Roboto-Medium.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/Roboto-Regular.ttf
Normal file
BIN
src/assets/glue-resources/fonts/Roboto-Regular.ttf
Normal file
Binary file not shown.
BIN
src/assets/glue-resources/fonts/Roboto-Thin.ttf
Normal file
BIN
src/assets/glue-resources/fonts/Roboto-Thin.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
32
src/styles/Fonts.scss
Normal file
32
src/styles/Fonts.scss
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// GoogleSans: https://www.cufonfonts.com/font/google-sans
|
||||
// Roboto: https://fonts.google.com/specimen/Roboto
|
||||
$font-names: (
|
||||
"glue": "GoogleSans",
|
||||
"info": "Roboto"
|
||||
);
|
||||
$font-styles: (
|
||||
"Thin": 100,
|
||||
"Light": 300,
|
||||
"Regular": 400,
|
||||
"Medium": 500,
|
||||
"Bold": 700,
|
||||
"Black": 900
|
||||
);
|
||||
|
||||
@each $prefix, $font in $font-names {
|
||||
@each $style, $weight in $font-styles {
|
||||
@font-face {
|
||||
font-family: $font;
|
||||
font-weight: $weight;
|
||||
font-style: normal;
|
||||
src: url("glue-resources/fonts/#{$font}-#{$style}.ttf") format("truetype");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
--glue-font-family: #{map-get($font-names, "glue")}, #{map-get($font-names, "info")}, spotify-circular, spotify-circular-cyrillic, spotify-circular-arabic, spotify-circular-hebrew, Helvetica Neue, helvetica, arial, Hiragino Kaku Gothic Pro, Meiryo, MS Gothic, sans-serif;
|
||||
--info-font-family: #{map-get($font-names, "info")}, spotify-circular, spotify-circular-cyrillic, spotify-circular-arabic, spotify-circular-hebrew, Helvetica Neue, helvetica, arial, Hiragino Kaku Gothic Pro, Meiryo, MS Gothic, sans-serif;
|
||||
font-family: var(--glue-font-family);
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
}
|
||||
|
||||
@import "Colors";
|
||||
@import "Fonts";
|
||||
@import "Inputs";
|
||||
@import "ConfigMenu";
|
||||
@import "ContextMenu.scss";
|
||||
|
|
@ -22,41 +23,6 @@
|
|||
--song-transition-speed: 3s;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Google Sans Display";
|
||||
src: url("glue-resources/fonts/GoogleSansDisplayRegular.woff2") format("woff2");
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Google Sans Display";
|
||||
src: url("glue-resources/fonts/GoogleSansDisplayMedium.woff2") format("woff2");
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("glue-resources/fonts/Roboto.woff2") format("woff2");
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("glue-resources/fonts/RobotoMedium.woff2") format("woff2");
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
body {
|
||||
--glue-font-family: "Google Sans Display", "Roboto", spotify-circular, spotify-circular-cyrillic, spotify-circular-arabic, spotify-circular-hebrew, Helvetica Neue, helvetica, arial, Hiragino Kaku Gothic Pro, Meiryo, MS Gothic, sans-serif;
|
||||
--info-font-family: "Roboto", spotify-circular, spotify-circular-cyrillic, spotify-circular-arabic, spotify-circular-hebrew, Helvetica Neue, helvetica, arial, Hiragino Kaku Gothic Pro, Meiryo, MS Gothic, sans-serif;
|
||||
font-family: var(--glue-font-family);
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
.os-scrollbar-handle {
|
||||
background-color: spiceColor("text") !important;
|
||||
border-radius: calc(var(--scrollbar-vertical-size) / 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue