mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 03:58:12 +08:00
Clean up popovers: background color and placeholder text
This commit is contained in:
@@ -19,6 +19,8 @@
|
|||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
:root {
|
:root {
|
||||||
|
// Replace usage of `-rgb` variants with CSS color() function to calculate alpha when browsers support it
|
||||||
|
// See https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color() and https://caniuse.com/css-color-function
|
||||||
--color-0-black: #000;
|
--color-0-black: #000;
|
||||||
--color-0-black-rgb: 0, 0, 0;
|
--color-0-black-rgb: 0, 0, 0;
|
||||||
--color-1-nearblack: #111;
|
--color-1-nearblack: #111;
|
||||||
@@ -57,12 +59,6 @@
|
|||||||
--color-accent-hover-rgb: 73, 165, 226;
|
--color-accent-hover-rgb: 73, 165, 226;
|
||||||
--color-accent-disabled: #416277;
|
--color-accent-disabled: #416277;
|
||||||
--color-accent-disabled-rgb: 65, 98, 119;
|
--color-accent-disabled-rgb: 65, 98, 119;
|
||||||
|
|
||||||
// TODO: Replace with CSS color() function to calculate alpha when browsers support it
|
|
||||||
// See https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/color() and https://caniuse.com/css-color-function
|
|
||||||
// F2 = 95% alpha
|
|
||||||
--floating-menu-opacity-color-2-mildblack: #222222f2;
|
|
||||||
--floating-menu-shadow: rgba(0, 0, 0, 50%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
@@ -186,7 +182,7 @@ img {
|
|||||||
.unsupported-modal {
|
.unsupported-modal {
|
||||||
background: var(--color-3-darkgray);
|
background: var(--color-3-darkgray);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
box-shadow: 2px 2px 5px 0 var(--floating-menu-shadow);
|
box-shadow: 2px 2px 5px 0 rgba(var(--color-0-black-rgb), 50%);
|
||||||
padding: 0 16px 16px 16px;
|
padding: 0 16px 16px 16px;
|
||||||
border: 1px solid var(--color-4-dimgray);
|
border: 1px solid var(--color-4-dimgray);
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<OptionalInput v-model:checked="snappingEnabled" @update:checked="comingSoon(200)" :icon="'Snapping'" title="Snapping" />
|
<OptionalInput v-model:checked="snappingEnabled" @update:checked="comingSoon(200)" :icon="'Snapping'" title="Snapping" />
|
||||||
<PopoverButton>
|
<PopoverButton>
|
||||||
<h3>Snapping</h3>
|
<h3>Snapping</h3>
|
||||||
<p>More snapping options will be here</p>
|
<p>The contents of this popover menu are coming soon</p>
|
||||||
</PopoverButton>
|
</PopoverButton>
|
||||||
|
|
||||||
<Separator :type="SeparatorType.Unrelated" />
|
<Separator :type="SeparatorType.Unrelated" />
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<OptionalInput v-model:checked="gridEnabled" @update:checked="comingSoon(318)" :icon="'Grid'" title="Grid" />
|
<OptionalInput v-model:checked="gridEnabled" @update:checked="comingSoon(318)" :icon="'Grid'" title="Grid" />
|
||||||
<PopoverButton>
|
<PopoverButton>
|
||||||
<h3>Grid</h3>
|
<h3>Grid</h3>
|
||||||
<p>More grid options will be here</p>
|
<p>The contents of this popover menu are coming soon</p>
|
||||||
</PopoverButton>
|
</PopoverButton>
|
||||||
|
|
||||||
<Separator :type="SeparatorType.Unrelated" />
|
<Separator :type="SeparatorType.Unrelated" />
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
<OptionalInput v-model:checked="overlaysEnabled" @update:checked="comingSoon(99)" :icon="'Overlays'" title="Overlays" />
|
<OptionalInput v-model:checked="overlaysEnabled" @update:checked="comingSoon(99)" :icon="'Overlays'" title="Overlays" />
|
||||||
<PopoverButton>
|
<PopoverButton>
|
||||||
<h3>Overlays</h3>
|
<h3>Overlays</h3>
|
||||||
<p>More overlays options will be here</p>
|
<p>The contents of this popover menu are coming soon</p>
|
||||||
</PopoverButton>
|
</PopoverButton>
|
||||||
|
|
||||||
<Separator :type="SeparatorType.Unrelated" />
|
<Separator :type="SeparatorType.Unrelated" />
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
<RadioInput :entries="viewModeEntries" v-model:selectedIndex="viewModeIndex" />
|
<RadioInput :entries="viewModeEntries" v-model:selectedIndex="viewModeIndex" />
|
||||||
<PopoverButton>
|
<PopoverButton>
|
||||||
<h3>View Mode</h3>
|
<h3>View Mode</h3>
|
||||||
<p>More view mode options will be here</p>
|
<p>The contents of this popover menu are coming soon</p>
|
||||||
</PopoverButton>
|
</PopoverButton>
|
||||||
|
|
||||||
<Separator :type="SeparatorType.Section" />
|
<Separator :type="SeparatorType.Section" />
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<PopoverButton>
|
<PopoverButton>
|
||||||
<h3>Compositing Options</h3>
|
<h3>Compositing Options</h3>
|
||||||
<p>More blend and compositing options will be here</p>
|
<p>The contents of this popover menu are coming soon</p>
|
||||||
</PopoverButton>
|
</PopoverButton>
|
||||||
</LayoutRow>
|
</LayoutRow>
|
||||||
<LayoutRow :class="'layer-tree scrollable-y'">
|
<LayoutRow :class="'layer-tree scrollable-y'">
|
||||||
|
|||||||
@@ -38,8 +38,8 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.floating-menu-content {
|
.floating-menu-content {
|
||||||
background: var(--floating-menu-opacity-color-2-mildblack);
|
background: rgba(var(--color-2-mildblack-rgb), 0.95);
|
||||||
box-shadow: var(--floating-menu-shadow) 0 2px 4px;
|
box-shadow: rgba(var(--color-0-black-rgb), 50%) 0 2px 4px;
|
||||||
border-radius: var(--floating-menu-content-border-radius);
|
border-radius: var(--floating-menu-content-border-radius);
|
||||||
color: var(--color-e-nearwhite);
|
color: var(--color-e-nearwhite);
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
@@ -128,28 +128,28 @@
|
|||||||
|
|
||||||
&.top .tail {
|
&.top .tail {
|
||||||
border-width: 8px 6px 0 6px;
|
border-width: 8px 6px 0 6px;
|
||||||
border-color: var(--floating-menu-opacity-color-2-mildblack) transparent transparent transparent;
|
border-color: rgba(var(--color-2-mildblack-rgb), 0.95) transparent transparent transparent;
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
margin-bottom: 2px;
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.bottom .tail {
|
&.bottom .tail {
|
||||||
border-width: 0 6px 8px 6px;
|
border-width: 0 6px 8px 6px;
|
||||||
border-color: transparent transparent var(--floating-menu-opacity-color-2-mildblack) transparent;
|
border-color: transparent transparent rgba(var(--color-2-mildblack-rgb), 0.95) transparent;
|
||||||
margin-left: -6px;
|
margin-left: -6px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.left .tail {
|
&.left .tail {
|
||||||
border-width: 6px 0 6px 8px;
|
border-width: 6px 0 6px 8px;
|
||||||
border-color: transparent transparent transparent var(--floating-menu-opacity-color-2-mildblack);
|
border-color: transparent transparent transparent rgba(var(--color-2-mildblack-rgb), 0.95);
|
||||||
margin-top: -6px;
|
margin-top: -6px;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.right .tail {
|
&.right .tail {
|
||||||
border-width: 6px 8px 6px 0;
|
border-width: 6px 8px 6px 0;
|
||||||
border-color: transparent var(--floating-menu-opacity-color-2-mildblack) transparent transparent;
|
border-color: transparent rgba(var(--color-2-mildblack-rgb), 0.95) transparent transparent;
|
||||||
margin-top: -6px;
|
margin-top: -6px;
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export default defineComponent({
|
|||||||
kind: "PopoverButton",
|
kind: "PopoverButton",
|
||||||
popover: {
|
popover: {
|
||||||
title: "Align",
|
title: "Align",
|
||||||
text: "More alignment-related buttons will be here",
|
text: "The contents of this popover menu are coming soon",
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
},
|
},
|
||||||
@@ -103,7 +103,7 @@ export default defineComponent({
|
|||||||
kind: "PopoverButton",
|
kind: "PopoverButton",
|
||||||
popover: {
|
popover: {
|
||||||
title: "Flip",
|
title: "Flip",
|
||||||
text: "More flip-related buttons will be here",
|
text: "The contents of this popover menu are coming soon",
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
},
|
},
|
||||||
@@ -122,7 +122,7 @@ export default defineComponent({
|
|||||||
kind: "PopoverButton",
|
kind: "PopoverButton",
|
||||||
popover: {
|
popover: {
|
||||||
title: "Boolean",
|
title: "Boolean",
|
||||||
text: "More boolean-related buttons will be here",
|
text: "The contents of this popover menu are coming soon",
|
||||||
},
|
},
|
||||||
props: {},
|
props: {},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<PopoverButton :icon="PopoverButtonIcon.VerticalEllipsis">
|
<PopoverButton :icon="PopoverButtonIcon.VerticalEllipsis">
|
||||||
<h3>Panel Options</h3>
|
<h3>Panel Options</h3>
|
||||||
<p>More panel-related options will be here</p>
|
<p>The contents of this popover menu are coming soon</p>
|
||||||
</PopoverButton>
|
</PopoverButton>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
|||||||
Reference in New Issue
Block a user