1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:07:34 +00:00

LibCards: Adjust card design

Alter the card dimensions to be 80x110px with a corner radius of 7px.
This is inspired by the dimensions of physical playing cards. It gives
12px of padding between the illustration and the card's border.

Move the card letter and symbol closer to the edge to make space.

Adjust the Club symbol to have the same dimensions as the other symbols.
This commit is contained in:
Cubic Love 2023-10-01 19:01:22 +01:00 committed by Sam Atkins
parent 355e373ce5
commit 02913e2184
2 changed files with 13 additions and 13 deletions

View file

@ -81,9 +81,9 @@ class Card final : public Core::EventReceiver {
C_OBJECT(Card)
public:
static constexpr int width = 80;
static constexpr int height = 100;
static constexpr int height = 110;
static constexpr int card_count = to_underlying(Rank::__Count);
static constexpr int card_radius = 5;
static constexpr int card_radius = 7;
virtual ~Card() override = default;