Skip to content

Commit

Permalink
(core): Refactor CardWidget implementation
Browse files Browse the repository at this point in the history
CardWidget is a custom Gtk::Widget child. This allows more freedom for extensibility later. Dynamic allocation by default is extinct for simpleness reasons
  • Loading branch information
smolBlackCat committed Jan 2, 2025
1 parent cb62da3 commit 117fda9
Show file tree
Hide file tree
Showing 7 changed files with 323 additions and 230 deletions.
1 change: 0 additions & 1 deletion src/resources.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<file>io.github.smolblackcat.Progress.svg</file>
<file>style.css</file>
<file>style-dark.css</file>
<file>card-widget.ui</file>
<file>app-window.ui</file>
<file>board-dialog.ui</file>
</gresource>
Expand Down
121 changes: 0 additions & 121 deletions src/resources/ui/card-widget.ui

This file was deleted.

12 changes: 11 additions & 1 deletion src/resources/ui/style-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,20 @@ list.rich-list {
box-shadow: 0 0 2px #9a9996;
}

.card {
card {
background-color: #5e5c64;
border-radius: 5px;
box-shadow: 0 0 2px #000000;
transition-property: background-color, border, box-shadow, outline;
transition-duration: 1s;
}

card:focus {
box-shadow: 0 0 5px #3772af;
background-color: #6e6c74;
border: 1px solid #3772af;
transition-property: background-color, border, box-shadow, outline;
transition-duration: 1s;
}

.delete-board-infobar-text {
Expand Down
9 changes: 8 additions & 1 deletion src/resources/ui/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ list.rich-list {
box-shadow: 0 0 2px #9a9996;
}

.card {
card {
background-color: #deddda;
border-radius: 5px;
box-shadow: 0 0 2px #9a9996;
}

card:focus {
padding: 4px;
box-shadow: 0 0 5px #4a90e2;
background-color: #f0f0f0;
border: 1px solid #4a90e2;
}

.delete-board-infobar-text {
color: #ffffff;
font-weight: bold;
Expand Down
Loading

0 comments on commit 117fda9

Please sign in to comment.