From d9c15584114efc7d981a1dbf7311e68845790dd7 Mon Sep 17 00:00:00 2001 From: Nate Butler Date: Thu, 29 Jun 2023 14:45:19 -0400 Subject: [PATCH] Re-add missing active state (#2664) [[PR Description]] Release Notes: - Fixes project panel active state that was incorrectly removed. --- styles/src/styleTree/projectPanel.ts | 31 ++++++++++++++++++---------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/styles/src/styleTree/projectPanel.ts b/styles/src/styleTree/projectPanel.ts index 3727c1916c..b45dc36ab7 100644 --- a/styles/src/styleTree/projectPanel.ts +++ b/styles/src/styleTree/projectPanel.ts @@ -49,7 +49,7 @@ export default function projectPanel(colorScheme: ColorScheme) { iconColor: foreground(layer, "variant"), iconSize: 7, iconSpacing: 5, - text: text(layer, "mono", "variant", { size: "sm" }), + text: text(layer, "sans", "variant", { size: "sm" }), status: { ...git_status, }, @@ -66,28 +66,37 @@ export default function projectPanel(colorScheme: ColorScheme) { ) const unselected_hovered_style = merge( base_properties, + { background: background(layer, "hovered") }, unselected?.hovered ?? {}, - { background: background(layer, "variant", "hovered") } ) const unselected_clicked_style = merge( base_properties, + { background: background(layer, "pressed") }, unselected?.clicked ?? {}, - { background: background(layer, "variant", "pressed") } ) const selected_default_style = merge( base_properties, + { + background: background(colorScheme.lowest), + text: text(colorScheme.lowest, "sans", { size: "sm" }), + }, selectedStyle?.default ?? {}, - { background: background(layer) } ) const selected_hovered_style = merge( base_properties, + { + background: background(colorScheme.lowest, "hovered"), + text: text(colorScheme.lowest, "sans", { size: "sm" }), + }, selectedStyle?.hovered ?? {}, - { background: background(layer, "variant", "hovered") } ) const selected_clicked_style = merge( base_properties, + { + background: background(colorScheme.lowest, "pressed"), + text: text(colorScheme.lowest, "sans", { size: "sm" }), + }, selectedStyle?.clicked ?? {}, - { background: background(layer, "variant", "pressed") } ) return toggleable({ @@ -150,14 +159,14 @@ export default function projectPanel(colorScheme: ColorScheme) { entry: defaultEntry, draggedEntry: { ...defaultEntry.inactive.default, - text: text(layer, "mono", "on", { size: "sm" }), + text: text(layer, "sans", "on", { size: "sm" }), background: withOpacity(background(layer, "on"), 0.9), border: border(layer), }, ignoredEntry: entry( { default: { - text: text(layer, "mono", "disabled"), + text: text(layer, "sans", "disabled"), }, }, { @@ -169,19 +178,19 @@ export default function projectPanel(colorScheme: ColorScheme) { cutEntry: entry( { default: { - text: text(layer, "mono", "disabled"), + text: text(layer, "sans", "disabled"), }, }, { default: { background: background(layer, "active"), - text: text(layer, "mono", "disabled", { size: "sm" }), + text: text(layer, "sans", "disabled", { size: "sm" }), }, } ), filenameEditor: { background: background(layer, "on"), - text: text(layer, "mono", "on", { size: "sm" }), + text: text(layer, "sans", "on", { size: "sm" }), selection: colorScheme.players[0], }, }