Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Impl: icons with support for light&dark themes#32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fioan89 merged 7 commits intomainfromimpl-icons-with-support-for-themes
Mar 13, 2025

Conversation

fioan89
Copy link
Collaborator

@fioan89fioan89 commentedMar 11, 2025
edited
Loading

  • LAF support in Toolbox is quite primitive, it turns out icon support for light and dark themes is enabled by a masked flag on the icons.
  • the mask flag controls whether the svg colors are inverted in light&dark themes.

Among other things we also fixed and issue with theStart button which remained active when a workspace was stopped and outdated. In order to be more consistent with the web client we renamed the button toUpdate and start to reflect that it also starts the workspace.

Running and outdated workspaces also received a new action button:Update and restart.

- Start button is active even though it doesn't do anything when clicked when the workspace template has updates.-resolves#31
- to `Update and start` to reflect that the it also starts the workspace- more consistent with the web client
- LAF support in Toolbox is quite primitive, it turns out icon support  for light and dark themes is enabled by a masked flag on the icons- the mask flag controls whether the svg colors are inverted in light&dark themes.
update(workspace, agent)
},
Action(context.i18n.ptrl("Update"), enabled= { workspace.outdated }) {
Action(context.i18n.ptrl("Update and start"), enabled= { workspace.outdated }) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We use "Update and restart" on the web dashboard if the workspace is already in aRunning state.

image

And "Update and start" if the workspace isStopped

image

So, we need to handle both cases separately.

Also, instead of disabling, can we just hide the unavailable actions?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sure I think we can do both though I'm not sure how do I get to have a running workspace but outdated so that I can test and play with it.

In the meantime let me write two issues to capture the requests.

matifali reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Update: unavailable actions are now hidden:
Screenshot 2025-03-12 at 22 12 53
Screenshot 2025-03-12 at 22 13 56

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not sure how do I get to have a running workspace but outdated so that I can test and play with it.

I can help provide one. If you are an admin, you can switch your workspace to a previous template version, and that makes it "Update and restart"

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not an admin, that would indeed simplify my testing.

- instead of disabling the env actions when they are not available we should hide them instead.-resolves#31
- when workspace is running and is outdated-resolves#33
@fioan89fioan89 requested a review frommatifaliMarch 12, 2025 21:59
@fioan89fioan89 merged commit2b18fe4 intomainMar 13, 2025
5 checks passed
@fioan89fioan89 deleted the impl-icons-with-support-for-themes branchMarch 13, 2025 08:43
@matifalimatifali linked an issueMar 14, 2025 that may beclosed by this pull request
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@matifalimatifalimatifali approved these changes

@bcpeinhardtbcpeinhardtAwaiting requested review from bcpeinhardt

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add support forUpdate and restart action Start button is active when a workspace is stopped and it's template needs an update
2 participants
@fioan89@matifali

[8]ページ先頭

©2009-2025 Movatter.jp