Skip to content
This repository has been 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
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LuckyMallari
Copy link
Contributor

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

dashcolors

Lucky Mallari 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>
Copy link
Member

@ghys ghys left a 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>
Copy link
Member

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>
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

@andreypopov
Copy link
Contributor

andreypopov commented Aug 5, 2018

Also need it for widgets, we need some way to show that many widgets are the part of the same thing.

Without borders looks frustrating

@jogibear9988
Copy link

@ghys @kaikreuzer any change to get this merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants