aboutsummaryrefslogtreecommitdiff
path: root/src/components/Tile.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-03-26 19:50:04 +1100
committerTerry Truong <terry06890@gmail.com>2022-03-26 19:50:04 +1100
commit5451bbadf15150dd558b83a3d934073f3d9181e0 (patch)
treeb002a4eeab451468c5703599d2acea8f0c063051 /src/components/Tile.vue
parent273bdade404f6d5315082a80c386daf4a276dbd9 (diff)
Make auto-mode current-node-based, with focus indication
Diffstat (limited to 'src/components/Tile.vue')
-rw-r--r--src/components/Tile.vue4
1 files changed, 2 insertions, 2 deletions
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',