Repository navigation
Improv bundles - #2288
Improv bundles#2288
Conversation
jacobgkau
left a comment
There was a problem hiding this comment.
This applies a character limit to the name input box for new themes that are saved; the limit also applies in the Import dialog box, so I can't cause breakage by manually editing the files in an exported theme bundle. I can still cause the issue by editing the installed theme's file in ~/.config/cosmic/com.system76.CosmicThemeBundle.test-theme.Theme/v2/name, however. Are we sure we don't want to limit the actual display of an installed theme's text in the GUI to guard against that better?
Sure, I can apply the limit to the display of the name in the GUI as well, just in case. 👍 |
7225f2b to
c9e27bd
Compare
|
Why not use ellipsis and allow for longer names? |
|
Something like this probably: let name = text::body(name)
.ellipsize(Ellipsize::End(EllipsizeHeightLimit::Lines(1)))
.apply(container)
.max_width(NAME_MAX_WIDTH); |
|
@wash2 I did see that 40 characters is not short enough when COSMIC Settings is at its minimum window width. @WatchMkr had suggested making the minimum short enough to still see the edit/delete buttons when at the minimum window width. Below is the current 40-character max:
So, it would need to be a few characters shorter if we're going with that approach. Otherwise, we could try an ellipses approach like @hojjatabdollahi is suggesting, if Carl's okay with it. But again, space needs to be reserved for the buttons if we do that, too. |
We can use a flex row to make this row responsive. I've added that in the latest commit, which should help. |
|
@hojjatabdollahi While I agree with everything you're pointing out (and brought up the lack of names on the cards myself a few days ago), we're needing to get an initial version of this out shortly. We can definitely discuss those improvements with @maria-komarova for future updates, but I don't think we're going to want to delay a whole lot longer for pre-release improvements. |
jacobgkau
left a comment
There was a problem hiding this comment.
Regression from master to this branch: if I change a theme's wallpaper, the theme's preview shows my new wallpaper when that theme is selected, but shows the theme's default wallpaper when it's not selected.
2026-11-10.13-37-03.mp4
On master, it shows the wallpaper the theme is currently set to whether the theme's selected or not, which seems like the correct behavior.
There was a problem hiding this comment.
Alright, that last issue's fixed, and everything else seems to still be working like it was before.
(Edit: I forgot to add the majority of my review remarking on the features fixed earlier, so I'll put that in below.)
On 5aac863, the rename/delete/edit buttons now wrap to the next line if necessary, while using ellipses to truncate the theme name if it needs to be shortened beyond the width of the page:
While nobody asked for the buttons to wrap to the next line, this is accomplishing the goal of keeping the buttons visible, and handles long theme names more visually gracefully than they were before.
We are still limiting the new name length to 40 characters in the rename & import dialogs, which can probably be removed later.
I'm seeing the frosted/glassy setting stay on what I set it to after changing the theme, so I think that bug is fixed. Resetting a theme to default works as expected.
These changes are only touching the appearance page and theme bundle config library, so regression testing the rest of the pages is not necessary.




should fix some issues with long theme names, and weird behavior with frosted theme variables not being fully rebuilt on activation. Also fixes reset to default.