Skip to content

Commit

Permalink
update precommit to remove new card-mod-*-yaml keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerwyn committed May 6, 2024
1 parent d7094cc commit 8ffffeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 219 deletions.
2 changes: 2 additions & 0 deletions .githooks/pre-commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
theme_file = yaml.load(f)
original_theme = copy.deepcopy(theme_file['Material Rounded'])
del original_theme['card-mod-root-yaml']
del original_theme['card-mod-card-yaml']
del original_theme['card-mod-row-yaml']

# Create a no mod version of theme with no card-mod
theme_title = 'Material Rounded No Mod'
Expand Down
219 changes: 0 additions & 219 deletions themes/material_rounded.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -597,79 +597,6 @@ Material Rounded No Mod:
hacs-error-color: rgb(182 46 95)
link-text-color: rgb(0, 86, 207)

card-mod-card-yaml: |
.: |
:host {
--switch-checked-button-color: var(--mdc-switch-checked-thumb-color);
--switch-checked-track-color: var(--mdc-switch-checked-track-color);
--switch-unchecked-button-color: var(--mdc-switch-unchecked-thumb-color);
--switch-unchecked-track-color: var(--mdc-switch-unchecked-track-color);
}
hui-entities-toggle$:
.: |
:host {
position: relative !important;
width: 40px !important;
left: -2px !important;
top: 5px !important;
}
ha-switch$: |
:host {
padding: 3px 5px !important;
}
.mdc-switch__track {
height: 24px !important;
width: 40px !important;
border-radius: 32px !important;
opacity: 1 !important;
}
.mdc-switch--checked > .mdc-switch__track {
opacity: 1 !important;
}
.mdc-switch__thumb-underlay {
top: -12px !important;
left: -12px !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb {
background-color: var(--mdc-switch-unchecked-button-color) !important;
height: 14px !important;
width: 14px !important;
border: none !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track {
--border-color: var(--mdc-switch-unchecked-button-color);
border: 2px solid gray !important;
}
card-mod-row-yaml: |
ha-entity-toggle$:
ha-switch$: |
:host {
padding: 3px 5px !important;
}
.mdc-switch__track {
height: 24px !important;
width: 40px !important;
border-radius: 32px !important;
opacity: 1 !important;
}
.mdc-switch--checked > .mdc-switch__track {
opacity: 1 !important;
}
.mdc-switch__thumb-underlay {
top: -12px !important;
left: -12px !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb {
background-color: var(--mdc-switch-unchecked-button-color) !important;
height: 14px !important;
width: 14px !important;
border: none !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track {
--border-color: var(--mdc-switch-unchecked-button-color);
border: 2px solid gray !important;
}
Material Rounded Transparent Card:
modes:
dark:
Expand Down Expand Up @@ -835,79 +762,6 @@ Material Rounded Transparent Card:
link-text-color: rgb(0, 86, 207)

card-mod-theme: Material Rounded
card-mod-card-yaml: |
.: |
:host {
--switch-checked-button-color: var(--mdc-switch-checked-thumb-color);
--switch-checked-track-color: var(--mdc-switch-checked-track-color);
--switch-unchecked-button-color: var(--mdc-switch-unchecked-thumb-color);
--switch-unchecked-track-color: var(--mdc-switch-unchecked-track-color);
}
hui-entities-toggle$:
.: |
:host {
position: relative !important;
width: 40px !important;
left: -2px !important;
top: 5px !important;
}
ha-switch$: |
:host {
padding: 3px 5px !important;
}
.mdc-switch__track {
height: 24px !important;
width: 40px !important;
border-radius: 32px !important;
opacity: 1 !important;
}
.mdc-switch--checked > .mdc-switch__track {
opacity: 1 !important;
}
.mdc-switch__thumb-underlay {
top: -12px !important;
left: -12px !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb {
background-color: var(--mdc-switch-unchecked-button-color) !important;
height: 14px !important;
width: 14px !important;
border: none !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track {
--border-color: var(--mdc-switch-unchecked-button-color);
border: 2px solid gray !important;
}
card-mod-row-yaml: |
ha-entity-toggle$:
ha-switch$: |
:host {
padding: 3px 5px !important;
}
.mdc-switch__track {
height: 24px !important;
width: 40px !important;
border-radius: 32px !important;
opacity: 1 !important;
}
.mdc-switch--checked > .mdc-switch__track {
opacity: 1 !important;
}
.mdc-switch__thumb-underlay {
top: -12px !important;
left: -12px !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb {
background-color: var(--mdc-switch-unchecked-button-color) !important;
height: 14px !important;
width: 14px !important;
border: none !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track {
--border-color: var(--mdc-switch-unchecked-button-color);
border: 2px solid gray !important;
}
Material Rounded Transparent Card No Mod:
modes:
dark:
Expand Down Expand Up @@ -1072,76 +926,3 @@ Material Rounded Transparent Card No Mod:
hacs-error-color: rgb(182 46 95)
link-text-color: rgb(0, 86, 207)

card-mod-card-yaml: |
.: |
:host {
--switch-checked-button-color: var(--mdc-switch-checked-thumb-color);
--switch-checked-track-color: var(--mdc-switch-checked-track-color);
--switch-unchecked-button-color: var(--mdc-switch-unchecked-thumb-color);
--switch-unchecked-track-color: var(--mdc-switch-unchecked-track-color);
}
hui-entities-toggle$:
.: |
:host {
position: relative !important;
width: 40px !important;
left: -2px !important;
top: 5px !important;
}
ha-switch$: |
:host {
padding: 3px 5px !important;
}
.mdc-switch__track {
height: 24px !important;
width: 40px !important;
border-radius: 32px !important;
opacity: 1 !important;
}
.mdc-switch--checked > .mdc-switch__track {
opacity: 1 !important;
}
.mdc-switch__thumb-underlay {
top: -12px !important;
left: -12px !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb {
background-color: var(--mdc-switch-unchecked-button-color) !important;
height: 14px !important;
width: 14px !important;
border: none !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track {
--border-color: var(--mdc-switch-unchecked-button-color);
border: 2px solid gray !important;
}
card-mod-row-yaml: |
ha-entity-toggle$:
ha-switch$: |
:host {
padding: 3px 5px !important;
}
.mdc-switch__track {
height: 24px !important;
width: 40px !important;
border-radius: 32px !important;
opacity: 1 !important;
}
.mdc-switch--checked > .mdc-switch__track {
opacity: 1 !important;
}
.mdc-switch__thumb-underlay {
top: -12px !important;
left: -12px !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__thumb {
background-color: var(--mdc-switch-unchecked-button-color) !important;
height: 14px !important;
width: 14px !important;
border: none !important;
}
.mdc-switch:not(.mdc-switch--checked) .mdc-switch__track {
--border-color: var(--mdc-switch-unchecked-button-color);
border: 2px solid gray !important;
}

0 comments on commit 8ffffeb

Please sign in to comment.