-
-
Notifications
You must be signed in to change notification settings - Fork 92
Feature/coloreddashboard - Added ability to configure background colors for dashboard tiles/cards. #295
base: master
Are you sure you want to change the base?
Feature/coloreddashboard - Added ability to configure background colors for dashboard tiles/cards. #295
Conversation
Signed-off-by: Lucky Mallari <[email protected]>
Fixes openhab#294 Signed-off-by: Lucky Mallari <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string can be removed
msgid "URL" | ||
msgstr "" | ||
|
||
#. Background Option Color Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This string can be removed
msgid "Background Type" | ||
msgstr "" | ||
|
||
#. Background Option Default Text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe "default" could be added as a "common term" as well actually! I'll have a look
@ghys @kaikreuzer any change to get this merged? |
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