Skip to content

Commit

Permalink
Merge pull request #69 from codebullfrog/icon-cell-customisation
Browse files Browse the repository at this point in the history
Icon cell customisation
  • Loading branch information
amaximus authored Jan 10, 2021
2 parents ebd92b1 + 632bbda commit e6ecf26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Configuration parameters:<br />
| due_txt | **Y** | `false` | For today/tomorrow pick-ups use 'Due today' or 'Due tomorrow'.|
| icon_color | **Y** | theme's icon color | icon color. Accepts both color names and RGB values.|
| icon_size | **Y** | `25px` | size of the icon.|
| icon_cell_padding | **Y** | `35px` | padding applied to icon cell.|
| icon_cell_width | **Y** | `60px` | icon cell width.|
| hass_lang_priority | **Y** | `false` | whether HASS language has priority over browser language.|
| hide_date | **Y** | `false` | hide date.|
| hide_days | **Y** | `false`| hide number of days. Automatically set to true when collection is due today or tomorrow.|
Expand Down
6 changes: 4 additions & 2 deletions dist/garbage-collection-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class GarbageCollectionCard extends HTMLElement {
due_txt: false,
icon_color: 'var(--paper-item-icon-color)',
icon_size: '25px',
icon_cell_padding: '35px',
icon_cell_width: '60px',
hass_lang_priority: false,
hide_date: false,
hide_days: false,
Expand Down Expand Up @@ -84,8 +86,8 @@ class GarbageCollectionCard extends HTMLElement {
font-size: 120%;
}
.tdicon {
padding-left: 35px;
width: 60px;
padding-left: ${cardConfig.icon_cell_padding};
width: ${cardConfig.icon_cell_width};
}
ha-icon-button {
color: ${cardConfig.icon_color};
Expand Down

0 comments on commit e6ecf26

Please sign in to comment.