diff --git a/src/components/Base/BaseButton.vue b/src/components/Base/BaseButton.vue index 24a42845f1..406e2b6794 100644 --- a/src/components/Base/BaseButton.vue +++ b/src/components/Base/BaseButton.vue @@ -31,7 +31,7 @@ defineEmits<{ .button { display: flex; - justify-content: space-between; + justify-content: center; align-items: center; text-wrap: nowrap; height: vars.$size-control; diff --git a/src/components/Base/BaseIconButton.stories.ts b/src/components/Base/BaseIconButton.stories.ts new file mode 100644 index 0000000000..34d45c08e8 --- /dev/null +++ b/src/components/Base/BaseIconButton.stories.ts @@ -0,0 +1,36 @@ +import type { Meta, StoryObj } from "@storybook/vue3"; + +import { TooltipProvider } from "radix-vue"; +import BaseIconButton from "./BaseIconButton.vue"; + +const meta: Meta = { + component: BaseIconButton, + render: (args) => ({ + components: { BaseIconButton, TooltipProvider }, + setup() { + return { args }; + }, + template: ` + + + `, + }), +}; + +export default meta; +type Story = StoryObj; + +export const Default: Story = { + args: { + label: "Default", + icon: "settings", + }, +}; + +export const Disabled: Story = { + args: { + label: "Disabled", + icon: "settings", + disabled: true, + }, +}; diff --git a/src/components/Base/BaseIconButton.vue b/src/components/Base/BaseIconButton.vue new file mode 100644 index 0000000000..267b00f776 --- /dev/null +++ b/src/components/Base/BaseIconButton.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/src/components/Base/BaseScrollArea.vue b/src/components/Base/BaseScrollArea.vue index 013d81d7ed..b1bc064f4e 100644 --- a/src/components/Base/BaseScrollArea.vue +++ b/src/components/Base/BaseScrollArea.vue @@ -52,6 +52,7 @@ import { .ScrollAreaScrollbar { user-select: none; touch-action: none; + z-index: vars.$z-index-scrollbar; } .ScrollAreaScrollbar[data-orientation="vertical"] { diff --git a/src/components/Dialog/HotkeyRecordingDialog.vue b/src/components/Dialog/HotkeyRecordingDialog.vue index d608f85746..46047b9b65 100644 --- a/src/components/Dialog/HotkeyRecordingDialog.vue +++ b/src/components/Dialog/HotkeyRecordingDialog.vue @@ -44,7 +44,7 @@ /> - - - - - +
+
+ {{ hotkeySetting.action }} +
+
+ +
+
+ +
+
+ + + +
@@ -132,6 +122,9 @@ diff --git a/src/styles/v2/colors.scss b/src/styles/v2/colors.scss index 94dc830f0f..d68687ce67 100644 --- a/src/styles/v2/colors.scss +++ b/src/styles/v2/colors.scss @@ -12,6 +12,7 @@ $primitive-red: #d04756; // ライトテーマの色 :root[is-dark-theme="false"] { --color-v2-background: #{color.adjust($primitive-primary, $lightness: 25%)}; + --color-v2-background-alt: #{color.adjust($primitive-white, $lightness: -5%)}; --color-v2-background-drawer: #{rgba(color.adjust($primitive-primary, $lightness: 20%), 0.75)}; --color-v2-surface: #{$primitive-white}; @@ -48,6 +49,7 @@ $primitive-red: #d04756; // ダークテーマの色 :root[is-dark-theme="true"] { --color-v2-background: #{$primitive-black}; + --color-v2-background-alt: #{color.adjust($primitive-black, $lightness: 2%)}; --color-v2-background-drawer: #{rgba($primitive-black, 0.75)}; --color-v2-surface: #{color.adjust($primitive-black, $lightness: 3%)}; @@ -82,6 +84,7 @@ $primitive-red: #d04756; } $background: var(--color-v2-background); +$background-alt: var(--color-v2-background-alt); $background-drawer: var(--color-v2-background-drawer); $surface: var(--color-v2-surface); diff --git a/src/styles/v2/variables.scss b/src/styles/v2/variables.scss index fe64a25ba5..abe056c97a 100644 --- a/src/styles/v2/variables.scss +++ b/src/styles/v2/variables.scss @@ -23,6 +23,7 @@ $radius-2: calc(var(--radius-basis) * 2); $transition-duration: 100ms; +$z-index-scrollbar: 100; $z-index-fullscreen-dialog: 1000; $z-index-dropdown: 1010; $z-index-fixed: 1020; diff --git "a/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--default-dark-storybook-win32.png" "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--default-dark-storybook-win32.png" new file mode 100644 index 0000000000..40d858a05f Binary files /dev/null and "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--default-dark-storybook-win32.png" differ diff --git "a/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--default-light-storybook-win32.png" "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--default-light-storybook-win32.png" new file mode 100644 index 0000000000..a79bc9a826 Binary files /dev/null and "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--default-light-storybook-win32.png" differ diff --git "a/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--disabled-dark-storybook-win32.png" "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--disabled-dark-storybook-win32.png" new file mode 100644 index 0000000000..f7e35bb00e Binary files /dev/null and "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--disabled-dark-storybook-win32.png" differ diff --git "a/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--disabled-light-storybook-win32.png" "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--disabled-light-storybook-win32.png" new file mode 100644 index 0000000000..31441b7c5c Binary files /dev/null and "b/tests/e2e/storybook/\343\202\271\343\202\257\343\203\252\343\203\274\343\203\263\343\202\267\343\203\247\343\203\203\343\203\210.spec.mts-snapshots/components-base-baseiconbutton--disabled-light-storybook-win32.png" differ