From dee3cf7883fa41986d1de2248801ca415d59ee3f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 3 Oct 2024 00:44:16 +0300 Subject: [PATCH] migrate all other function calls to new format --- src/components/border.style.js | 2 +- src/components/button.style.js | 2 +- src/components/icon.style.js | 2 +- src/components/menu_item.style.js | 6 +++--- src/components/root.style.js | 2 +- src/components/scrollbar_element.style.js | 2 +- src/components/tab_switcher/tab.style.js | 2 +- src/components/user_card/user_card.style.js | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/border.style.js b/src/components/border.style.js index a87ee9c8..7f2c3016 100644 --- a/src/components/border.style.js +++ b/src/components/border.style.js @@ -5,7 +5,7 @@ export default { defaultRules: [ { directives: { - textColor: '$mod(--parent, 10)', + textColor: '$mod(--parent 10)', textAuto: 'no-auto' } } diff --git a/src/components/button.style.js b/src/components/button.style.js index 8bbc7751..95ef3e40 100644 --- a/src/components/button.style.js +++ b/src/components/button.style.js @@ -92,7 +92,7 @@ export default { { state: ['disabled'], directives: { - background: '$blend(--inheritedBackground, 0.25, --parent)', + background: '$blend(--inheritedBackground 0.25 --parent)', shadow: ['--defaultButtonBevel'] } }, diff --git a/src/components/icon.style.js b/src/components/icon.style.js index 6cb9e4e3..4d30f389 100644 --- a/src/components/icon.style.js +++ b/src/components/icon.style.js @@ -6,7 +6,7 @@ export default { { component: 'Icon', directives: { - textColor: '$blend(--stack, 0.5, --parent--text)', + textColor: '$blend(--stack 0.5 --parent--text)', textAuto: 'no-auto' } } diff --git a/src/components/menu_item.style.js b/src/components/menu_item.style.js index 51388155..5b3ff699 100644 --- a/src/components/menu_item.style.js +++ b/src/components/menu_item.style.js @@ -24,21 +24,21 @@ export default { { state: ['hover'], directives: { - background: '$mod(--bg, 5)', + background: '$mod(--bg 5)', opacity: 1 } }, { state: ['active'], directives: { - background: '$mod(--bg, 10)', + background: '$mod(--bg 10)', opacity: 1 } }, { state: ['active', 'hover'], directives: { - background: '$mod(--bg, 15)', + background: '$mod(--bg 15)', opacity: 1 } }, diff --git a/src/components/root.style.js b/src/components/root.style.js index d4accc17..25b2b665 100644 --- a/src/components/root.style.js +++ b/src/components/root.style.js @@ -43,7 +43,7 @@ export default { // Selection colors '--selectionBackground': 'color | --accent', - '--selectionText': 'color | $textColor(--accent, --text, no-preserve)' + '--selectionText': 'color | $textColor(--accent --text no-preserve)' } } ] diff --git a/src/components/scrollbar_element.style.js b/src/components/scrollbar_element.style.js index 83bbb120..caa239aa 100644 --- a/src/components/scrollbar_element.style.js +++ b/src/components/scrollbar_element.style.js @@ -83,7 +83,7 @@ export default { { state: ['disabled'], directives: { - background: '$blend(--inheritedBackground, 0.25, --parent)', + background: '$blend(--inheritedBackground 0.25 --parent)', shadow: [...buttonInsetFakeBorders] } }, diff --git a/src/components/tab_switcher/tab.style.js b/src/components/tab_switcher/tab.style.js index eac8aaeb..217d42eb 100644 --- a/src/components/tab_switcher/tab.style.js +++ b/src/components/tab_switcher/tab.style.js @@ -39,7 +39,7 @@ export default { { state: ['disabled'], directives: { - background: '$blend(--inheritedBackground, 0.25, --parent)', + background: '$blend(--inheritedBackground 0.25 --parent)', shadow: ['--defaultButtonBevel'] } }, diff --git a/src/components/user_card/user_card.style.js b/src/components/user_card/user_card.style.js index 34eaa176..dff0315b 100644 --- a/src/components/user_card/user_card.style.js +++ b/src/components/user_card/user_card.style.js @@ -25,7 +25,7 @@ export default { color: '#000000', alpha: 0.6 }], - '--profileTint': 'color | $alpha(--background, 0.5)' + '--profileTint': 'color | $alpha(--background 0.5)' } }, {