[gnome-software/wjt/app-tile-typography: 1/4] css: Import GTK 4's General Typography section
- From: Will Thompson <wjt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wjt/app-tile-typography: 1/4] css: Import GTK 4's General Typography section
- Date: Fri, 30 Jul 2021 19:05:46 +0000 (UTC)
commit 2c3c2dbe283d613b894d5cc253d07ca2fea76a39
Author: Will Thompson <wjt endlessos org>
Date: Fri Jul 30 19:18:50 2021 +0100
css: Import GTK 4's General Typography section
Previously, just two of these (.title-1 and .caption) were imported. A
subsequent commit will use a few more. Import the whole lot so we can
use them as needed, and update the comment to reflect the fact that
"eventually" has arrived, just not reached GNOME Software yet.
src/gtk-style.css | 44 ++++++++++++++++++++++++++++++++++++--------
1 file changed, 36 insertions(+), 8 deletions(-)
---
diff --git a/src/gtk-style.css b/src/gtk-style.css
index b073f05ff..28473deb0 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -515,14 +515,42 @@ star-image {
box-shadow: none;
}
-/* these typographical classes will be provided in gtk eventually */
-.title-1{
- font-weight: 800;
- font-size: 20pt;
-}
-.caption{
- font-weight: 400;
- font-size: 10pt;
+/* these typographical classes are provided by GTK 4, but not 3 */
+.large-title {
+ font-weight: 300;
+ font-size: 24pt;
+}
+.title-1 {
+ font-weight: 800;
+ font-size: 20pt;
+}
+.title-2 {
+ font-weight: 800;
+ font-size: 15pt;
+}
+.title-3 {
+ font-weight: 700;
+ font-size: 15pt;
+}
+.title-4 {
+ font-weight: 700;
+ font-size: 13pt;
+}
+.heading {
+ font-weight: 700;
+ font-size: 11pt;
+}
+.body {
+ font-weight: 400;
+ font-size: 11pt;
+}
+.caption-heading {
+ font-weight: 700;
+ font-size: 9pt;
+}
+.caption {
+ font-weight: 400;
+ font-size: 9pt;
}
/* the loading page headerbar */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]