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

Add color palette to plugin settings to change background color #62

Merged
merged 3 commits into from May 13, 2020

Conversation

Sarath18
Copy link
Contributor

@Sarath18 Sarath18 commented May 12, 2020

Signed-off-by: Sarathkrishnan Ramesh sarathkrishnan99@gmail.com

Reference to issue #61

Description

Add color palette to select background color and transparency to the plugin settings. User can change the background in both docked and undocked state.

split

Basic Info

Tested on: Ubuntu 18.04

Signed-off-by: Sarathkrishnan Ramesh <sarathkrishnan99@gmail.com>
@Sarath18 Sarath18 requested a review from chapulina as a code owner May 12, 2020 07:46
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Great! This works for me!

It would be great if the color would persist when the configuration is saved. For example:

  1. Open ign gui
  2. Add Publisher plugin
  3. Change its background color to blue
  4. On the left menu, Save configuration as
  5. Then Load configuration and choose the saved file - you'll see that the background goes back to white.

If you inspect the saved file, you'll see that it doesn't have any variables holding the color. I think we'll need to add it as a property of IgnCard.

The plugin_params.config example should also be helpful to look at.

@Sarath18
Copy link
Contributor Author

Okay! Thanks. I'll look into it.

* Save plugin background color information in config file

* Change default background color to white

Signed-off-by: Sarathkrishnan Ramesh <sarathkrishnan99@gmail.com>
@Sarath18 Sarath18 requested a review from chapulina May 12, 2020 21:22
@chapulina chapulina added enhancement New feature or request 🔮 dome Ignition Dome labels May 13, 2020
@chapulina chapulina added this to Inbox in Core development via automation May 13, 2020
@chapulina chapulina moved this from Inbox to In review in Core development May 13, 2020
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Ready to merge once the default color is transparent.

include/ignition/gui/qml/IgnCard.qml Outdated Show resolved Hide resolved
Signed-off-by: Sarathkrishnan Ramesh <sarathkrishnan99@gmail.com>
@Sarath18 Sarath18 requested a review from chapulina May 13, 2020 08:32
Copy link
Contributor

@chapulina chapulina left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for iterating!

@chapulina chapulina merged commit fd0c486 into gazebosim:master May 13, 2020
Core development automation moved this from In review to Done May 13, 2020
@Sarath18 Sarath18 deleted the feature_bg_floating branch May 13, 2020 15:33
chapulina pushed a commit that referenced this pull request Jun 4, 2020
* Add color palette to plugin settings to change background color
* Save plugin background color information in config file

Signed-off-by: Sarathkrishnan Ramesh <sarathkrishnan99@gmail.com>
@chapulina chapulina mentioned this pull request Jun 4, 2020
@j-rivero j-rivero removed this from Done in Core development May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔮 dome Ignition Dome enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants