-
Notifications
You must be signed in to change notification settings - Fork 117
Koala user defined custom colors #3361
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
base: feature-custom-colors
Are you sure you want to change the base?
Changes from all commits
34d5040
7a70435
52bbdba
41e0c4a
f8c3499
513fec7
80cbe98
67023a2
bc6d4cd
ec12a71
5672b8f
71d0aea
293c750
cf7cdd1
0e54b63
7e0e1fd
71f464b
476a383
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Warum hast Du das Symbol geändert? Gibt es mit |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,12 @@ | ||
| <template> | ||
| <q-card | ||
| ref="cardRef" | ||
| class="card-width" | ||
| :class="{ | ||
| class="battery-card" | ||
| :class="[{ | ||
| 'battery-sum': props.batteryId === -1, | ||
| 'full-height': props.fullHeight, | ||
| }" | ||
| }, batteryUserDefinedColor && 'has-custom-color']" | ||
| :style="batteryUserDefinedColor && { '--component-color': batteryUserDefinedColor }" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bitte verwende nach Möglichkeit keine direkten |
||
| > | ||
| <q-card-section class="row no-wrap items-center justify-between"> | ||
| <div class="text-h6 text-bold ellipsis" :title="cardTitle"> | ||
|
|
@@ -163,11 +164,20 @@ const dailyExportedEnergy = computed(() => { | |
| '---' | ||
| ); | ||
| }); | ||
|
|
||
| const batteryUserDefinedColor = computed(() => | ||
| mqttStore.batteryUserDefinedColor(props.batteryId) | ||
| ); | ||
| </script> | ||
|
|
||
| <style scoped lang="scss"> | ||
| .card-width { | ||
| .battery-card { | ||
| width: 22em; | ||
| border: none; | ||
| } | ||
|
|
||
| .battery-card.has-custom-color { | ||
| border-left: 4px solid var(--component-color); | ||
| } | ||
|
|
||
| .q-card__section { | ||
|
|
||
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.
Die Zeilen scheinen unbeabsichtigt zu sein. Bitte entfernen.