Calendar: Use Et2SwitchIcon for weekend toggle for mobile

This commit is contained in:
nathan 2024-10-17 15:23:24 -06:00
parent 18ca5a6e51
commit 0d401c2e6d
3 changed files with 10 additions and 1 deletions

View File

@ -149,6 +149,7 @@ export class Et2SwitchIcon extends Et2InputWidget(LitElement)
{
return html`
<sl-switch
part="switch"
exportparts="base:switch-label"
.label=${this.label}
.value=${live(this.value)}

View File

@ -2762,6 +2762,15 @@ div.et2_toolbar.ui-widget-header {
height: 18px;
}
.et2_toolbar .ui-toolbar-menulist et2-switch-icon::part(switch-label),
.et2_toolbar .ui-toolbar-menulist et2-switch-icon::part(switch) {
width: 100%;
}
.et2_toolbar .ui-toolbar-menulist et2-switch-icon::part(control) {
width: 100%;
justify-content: space-evenly;
}
et2-button.transparent-button {
border: none;
background: transparent;

View File

@ -428,7 +428,6 @@ class calendar_uiviews extends calendar_ui
$actions[$key]['toolbarDefault'] = true;
}
}
$actions['weekend']['data'] = array('toggle_off' => '7', 'toggle_on' => '5');
unset($actions['pgp']);
}
return $actions;