From 5451bbadf15150dd558b83a3d934073f3d9181e0 Mon Sep 17 00:00:00 2001
From: Terry Truong <terry06890@gmail.com>
Date: Sat, 26 Mar 2022 19:50:04 +1100
Subject: Make auto-mode current-node-based, with focus indication

---
 src/components/Tile.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/Tile.vue')

diff --git a/src/components/Tile.vue b/src/components/Tile.vue
index 3485f53..82599ff 100644
--- a/src/components/Tile.vue
+++ b/src/components/Tile.vue
@@ -63,7 +63,7 @@ export default defineComponent({
 				backgroundColor: this.nonLeafBgColor,
 				borderRadius: this.options.borderRadius + 'px',
 				boxShadow: this.nonLeafHighlight ? this.options.shadowHighlight :
-					(this.layoutNode.searchResult ? this.options.shadowSearchResult : this.options.shadowNormal),
+					(this.layoutNode.hasFocus ? this.options.shadowFocused : this.options.shadowNormal),
 			};
 			if (this.layoutNode.sepSweptArea != null){
 				let r = this.options.borderRadius + 'px';
@@ -94,7 +94,7 @@ export default defineComponent({
 				position: 'absolute',
 				backgroundColor: this.nonLeafBgColor,
 				boxShadow: this.nonLeafHighlight ? this.options.shadowHighlight :
-					(this.layoutNode.searchResult ? this.options.shadowSearchResult : this.options.shadowNormal),
+					(this.layoutNode.hasFocus ? this.options.shadowFocused : this.options.shadowNormal),
 				transitionDuration: this.options.transitionDuration + 'ms',
 				transitionProperty: 'left, top, width, height',
 				transitionTimingFunction: 'ease-out',
-- 
cgit v1.2.3

