[gnome-todo] welcome-action-card: Use .card CSS class
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] welcome-action-card: Use .card CSS class
- Date: Thu, 18 Nov 2021 02:33:50 +0000 (UTC)
commit 89245c26655227d1a8b79c1d6f0cf56691df2361
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Nov 17 23:15:13 2021 -0300
welcome-action-card: Use .card CSS class
It's provided by libadwaita now. Use it, and cleanup the
corresponding CSS.
src/plugins/welcome/gtd-welcome-action-card.ui | 4 ++++
src/plugins/welcome/themes/shared.css | 12 ------------
2 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/src/plugins/welcome/gtd-welcome-action-card.ui b/src/plugins/welcome/gtd-welcome-action-card.ui
index c91ca2bd..a859c17a 100644
--- a/src/plugins/welcome/gtd-welcome-action-card.ui
+++ b/src/plugins/welcome/gtd-welcome-action-card.ui
@@ -1,6 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtdWelcomeActionCard" parent="GtkButton">
+ <style>
+ <class name="activatable" />
+ <class name="card" />
+ </style>
<child>
<object class="GtkCenterBox">
diff --git a/src/plugins/welcome/themes/shared.css b/src/plugins/welcome/themes/shared.css
index da81db39..91ffbb45 100644
--- a/src/plugins/welcome/themes/shared.css
+++ b/src/plugins/welcome/themes/shared.css
@@ -13,27 +13,15 @@ welcome-workspace label.welcome-title {
welcome-action-card {
background-color: @theme_base_color;
- border-radius: 5px;
padding: 18px 24px;
- border: solid 1px @borders;
min-width: 142px;
min-height: 142px;
opacity: 1;
- transition: all 150ms linear;
-}
-
-welcome-action-card:hover {
- background-color: alpha(@theme_fg_color, 0.05);
-}
-
-welcome-action-card:active {
- background-color: @theme_bg_color;
}
welcome-action-card.empty {
opacity: 0.4;
- transition: opacity 500ms linear;
}
welcome-action-card label.title {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]