edfloreshz / cosmic-tweaks

A tweaking tool for the COSMIC desktop.
GNU General Public License v3.0
28 stars 2 forks source link

Feature Request: Corner radii #2

Open leb-kuchen opened 1 month ago

leb-kuchen commented 1 month ago

The appearance settings has 3 options for corner radii. These are the generated config files in CosmicTheme{Dark,Light} respectively. There is a builder, but for corner radii these values are the same. Also these values are for top-left, top-right, bottom-right and bottom-left

(
    radius_0: (0.0, 0.0, 0.0, 0.0),
    radius_xs: (4.0, 4.0, 4.0, 4.0),
    radius_s: (8.0, 8.0, 8.0, 8.0),
    radius_m: (16.0, 16.0, 16.0, 16.0),
    radius_l: (32.0, 32.0, 32.0, 32.0),
    radius_xl: (160.0, 160.0, 160.0, 160.0),
)
(
    radius_0: (0.0, 0.0, 0.0, 0.0),
    radius_xs: (2.0, 2.0, 2.0, 2.0),
    radius_s: (8.0, 8.0, 8.0, 8.0),
    radius_m: (8.0, 8.0, 8.0, 8.0),
    radius_l: (8.0, 8.0, 8.0, 8.0),
    radius_xl: (8.0, 8.0, 8.0, 8.0),
)
(
    radius_0: (0.0, 0.0, 0.0, 0.0),
    radius_xs: (2.0, 2.0, 2.0, 2.0),
    radius_s: (2.0, 2.0, 2.0, 2.0),
    radius_m: (2.0, 2.0, 2.0, 2.0),
    radius_l: (2.0, 2.0, 2.0, 2.0),
    radius_xl: (2.0, 2.0, 2.0, 2.0),
)

So what options should we provide? I think of 2 options.

  1. Let the user set config file
  2. Provide more options than the appearance settings with a slider
leb-kuchen commented 1 month ago

screenshot-2024-05-04-13-03-33 Doubling the top-left and bottom-right radii on the setting Slightly round.

edfloreshz commented 1 month ago

This is interesting and would provide a lot more customization to the desktop.

M00NJ commented 1 month ago

I don't know how feasible this is, but being able to set different corner radii for certain components would be a great advanced tweaking option. For example I'm not a fan of the pill shaped sidebar items. But setting the style to slightly round changes the shape of the switches as well, which should stay pill shaped imo, since it's usually default shape for switches.