This repository was archived by the owner on May 23, 2019. It is now read-only.
Feature/coloreddashboard - Added ability to configure background colors for dashboard tiles/cards.#295
Open
LuckyMallari wants to merge 2 commits intoopenhab:masterfrom
Open
Conversation
added 2 commits
February 17, 2018 21:57
Signed-off-by: Lucky Mallari <luckymallari@gmail.todotcom>
Fixes openhab#294 Signed-off-by: Lucky Mallari <luckymallari@gmail.todotcom>
ghys
reviewed
Feb 19, 2018
Member
ghys
left a comment
There was a problem hiding this comment.
Looks good, left a few comments.
Also the docs need to be updated (https://docs.openhab.org/configuration/habpanel.html#the-main-menu) ;)
| <input name="name" type="text" ng-model="form.tile.background_image" class="form-control" /> | ||
| <select name="background_type" ng-model="form.tile.background_type" class="form-control"> | ||
| <option value="default" translate-keep-content translate="dashboard.settings.tile.background.type.default">Default</option> | ||
| <option value="url" translate-keep-content translate="dashboard.settings.tile.background.type.url">URL</option> |
Member
There was a problem hiding this comment.
I think "URL" could be left untranslated? :)
| <select name="background_type" ng-model="form.tile.background_type" class="form-control"> | ||
| <option value="default" translate-keep-content translate="dashboard.settings.tile.background.type.default">Default</option> | ||
| <option value="url" translate-keep-content translate="dashboard.settings.tile.background.type.url">URL</option> | ||
| <option value="color" translate-keep-content translate="dashboard.settings.tile.background.type.color">Color</option> |
Member
There was a problem hiding this comment.
"Color" is actually one the "common terms" I devised and is already translated in main.pot so you can simply use
the "translate" directive without any further indication :)
| msgid "Default" | ||
| msgstr "" | ||
|
|
||
| #. Background Option URL Text |
| msgid "URL" | ||
| msgstr "" | ||
|
|
||
| #. Background Option Color Text |
| msgid "Background Type" | ||
| msgstr "" | ||
|
|
||
| #. Background Option Default Text |
Member
There was a problem hiding this comment.
Maybe "default" could be added as a "common term" as well actually! I'll have a look
Contributor
|
@ghys @kaikreuzer any change to get this merged? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Added ability to configure background colors for dashboard tiles/cards.
So now, we have the ability to add either a color or a URL.
"Default" in dropdown setting means unset, and will use whatever theme is using.
Fixes #294