Skip to content

Commit

Permalink
fix: improve UI of button disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroreisvieira committed Mar 28, 2023
1 parent 3d83870 commit 1e8801a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 7 deletions.
15 changes: 13 additions & 2 deletions Meetio Theme High Contrast.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"sidebarHeadingFontSize": "var(fontSizeSm)",
"sidebarLabelFontSize": "var(fontSizeMd)",
"sidebarLabelPadding": [
14,
3
16,
4
],
"sidebarIndent": 20,
"sidebarIndentOffset": 14,
Expand Down Expand Up @@ -256,6 +256,17 @@
"interpolation": "smoothstep"
}
},
{
"class": "button_control",
"attributes": [
"disabled"
],
"layer0.opacity": {
"target": 0,
"speed": 0,
"interpolation": "smoothstep"
}
},
{
"class": "button_control",
"min_size": "var(buttonMedium)",
Expand Down
15 changes: 13 additions & 2 deletions Meetio Theme.sublime-theme
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@
"sidebarHeadingFontSize": "var(fontSizeSm)",
"sidebarLabelFontSize": "var(fontSizeMd)",
"sidebarLabelPadding": [
14,
3
16,
4
],
"sidebarIndent": 20,
"sidebarIndentOffset": 14,
Expand Down Expand Up @@ -254,6 +254,17 @@
"interpolation": "smoothstep"
}
},
{
"class": "button_control",
"attributes": [
"disabled"
],
"layer0.opacity": {
"target": 0,
"speed": 0,
"interpolation": "smoothstep"
}
},
{
"class": "button_control",
"min_size": "var(buttonMedium)",
Expand Down
11 changes: 10 additions & 1 deletion src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const variables: ThemeVariables = {
sidebarBorder: 'var(sidebarBackground)',
sidebarHeadingFontSize: 'var(fontSizeSm)',
sidebarLabelFontSize: 'var(fontSizeMd)',
sidebarLabelPadding: [14, 3],
sidebarLabelPadding: [16, 4],
sidebarIndent: 20,
sidebarIndentOffset: 14,
sidebarLabelColor: 'color(var(background) blend(var(foreground) 30%))',
Expand Down Expand Up @@ -177,6 +177,15 @@ export const rules = [
interpolation: 'smoothstep',
},
},
{
class: 'button_control',
attributes: ['disabled'],
'layer0.opacity': {
target: 0,
speed: 0,
interpolation: 'smoothstep',
},
},
{
class: 'button_control',
min_size: 'var(buttonMedium)',
Expand Down
15 changes: 13 additions & 2 deletions themes/Meetio Theme.hidden-theme
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
"sidebarHeadingFontSize": "var(fontSizeSm)",
"sidebarLabelFontSize": "var(fontSizeMd)",
"sidebarLabelPadding": [
14,
3
16,
4
],
"sidebarIndent": 20,
"sidebarIndentOffset": 14,
Expand Down Expand Up @@ -253,6 +253,17 @@
"interpolation": "smoothstep"
}
},
{
"class": "button_control",
"attributes": [
"disabled"
],
"layer0.opacity": {
"target": 0,
"speed": 0,
"interpolation": "smoothstep"
}
},
{
"class": "button_control",
"min_size": "var(buttonMedium)",
Expand Down

0 comments on commit 1e8801a

Please sign in to comment.