Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set icon/PNG easily / Button Designer #3187

Open
2 tasks done
AJolly opened this issue Dec 24, 2024 · 1 comment
Open
2 tasks done

Set icon/PNG easily / Button Designer #3187

AJolly opened this issue Dec 24, 2024 · 1 comment
Labels
area/graphics Button drawing Enhancement New feature or request Question Further information is requested

Comments

@AJolly
Copy link

AJolly commented Dec 24, 2024

Is this a feature relevant to companion itself, and not a module?

  • I believe this to be a feature for companion, not a module

Is there an existing issue for this?

  • I have searched the existing issues

Describe the feature

I'd like A few related improvements to button handling. I'm happy to create these as separate issues if it'll help.

  1. Action to set button background. We have an ability to set button text/background color as an action, but not the png.
  2. Import background from executable. For example - notepad.exe
  3. Allow other filetypes for button background - ico, jpg.
  4. Import background from url (favicon)
  5. button background size scaling.

Usecases

I'm primarily using companion as a replacement application/webpage launcher on windows.
I want to create simple buttons, that launch either a webpage or an application when pressed, but the workflow to get an button icon that companion will accept is quite time consuming.

My usual workflow is I create a new button with the action system: Run Shell path, point it to my target executable. Ideally I'd be done here.
However, I now have to

  1. Extract ico from the exe.
  2. Convert ico to png
  3. sometimes realize the image is too small, and go rescale it in a different app.
    The same issues apply to webpages.

I'd like a way to set the button background image via an action, (and ideally be able to set it to the current value of a variable, not a dynamic lookup.

Image

@Julusian Julusian added Enhancement New feature or request area/graphics Button drawing labels Dec 24, 2024
@dnmeid
Copy link
Member

dnmeid commented Dec 26, 2024

  1. Action to set button background. We have an ability to set button text/background color as an action, but not the png.

We have a feedback that can style the button including the image. We want to encourage this way of styling instead of direct manipulation, so I think it is not likely to implement this.

  1. Import background from executable. For example - notepad.exe

What do you mean with background? Background in terms of Companion is the background color. Or do you mean the image? And what do you mean with import? Paste from clipboard?

  1. Allow other filetypes for button background - ico, jpg.

This is on the roadmap, svg is implemented but not in the GUI yet. I think ico is not very likely but jpg is.

  1. Import background from url (favicon)

I'm not sure if we should do this in the regular button style as this is quite an advanced use and it would result in a complicated GUI that only very few users would use. I can imagine this to be solved as a feedback, maybe even in an additional module.

  1. button background size scaling.

This is on the roadmap

@dnmeid dnmeid added the Question Further information is requested label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphics Button drawing Enhancement New feature or request Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants