From fb5b53b36451cf9a1c983a8be80a35a79b14cf01 Mon Sep 17 00:00:00 2001 From: jin Date: Fri, 3 Nov 2023 22:54:31 +0300 Subject: [PATCH] +3 --- theme/demo/demo.view.css.ts | 5 ----- theme/demo/demo.view.tree | 4 ++-- theme/demo/demo.view.ts | 8 -------- view/view/view.ts | 2 +- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/theme/demo/demo.view.css.ts b/theme/demo/demo.view.css.ts index 831d9938d99..988eaf41b4b 100644 --- a/theme/demo/demo.view.css.ts +++ b/theme/demo/demo.view.css.ts @@ -2,11 +2,6 @@ namespace $.$$ { $mol_style_define( $mol_theme_demo_case, { - flex: { - direction: `row`, - shrink: 0, - grow: 0, - }, gap: $mol_gap.block, padding: $mol_gap.block, diff --git a/theme/demo/demo.view.tree b/theme/demo/demo.view.tree index 139a0a7a866..4f50ac95361 100644 --- a/theme/demo/demo.view.tree +++ b/theme/demo/demo.view.tree @@ -7,7 +7,7 @@ $mol_theme_demo $mol_example_large precision_change 15 <= Scroll $mol_scroll sub / <= Cases $mol_theme_demo_case - title <= theme \Current light + title \Current light inner / <= Base $mol_theme_demo_case theme \$mol_theme_base <= Accent $mol_theme_demo_case theme \$mol_theme_accent @@ -25,7 +25,7 @@ $mol_theme_demo_case $mol_view <= Self $mol_list rows / <= Card1 $mol_list rows / <= Card2 $mol_row sub / - <= Card2_text $mol_button_copy title <= theme_code <= title + <= Card2_text $mol_button_copy title <= title <= Card1_text $mol_button_copy title \ $mol_theme.card <= Back $mol_button_copy title \$mol_theme.back <= Line $mol_button_copy title \$mol_theme.line diff --git a/theme/demo/demo.view.ts b/theme/demo/demo.view.ts index 434ce9b0b0c..4e448c109c0 100644 --- a/theme/demo/demo.view.ts +++ b/theme/demo/demo.view.ts @@ -8,12 +8,4 @@ namespace $.$$ { } - export class $mol_theme_demo_case extends $.$mol_theme_demo_case { - - theme_code() { - return this.title() - } - - } - } diff --git a/view/view/view.ts b/view/view/view.ts index e6f6ef04f4e..490af606f4b 100644 --- a/view/view/view.ts +++ b/view/view/view.ts @@ -385,7 +385,7 @@ namespace $ { attr() { return { - mol_theme: this.theme() || undefined, + mol_theme: this.theme() ?? undefined, } as {} }