From fc406be924024610e0841586de0ec70019a126d3 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Sat, 26 Aug 2017 20:47:43 +0200 Subject: [PATCH] fix some css --- src/packages/Files/main.coffee | 6 +++--- src/themes/antos/afx-file-view.css | 5 +++++ src/themes/antos/afx-list-view.css | 3 +++ src/themes/antos/afx-menu.css | 3 +++ src/themes/antos/afx-tree-view.css | 2 ++ 5 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/packages/Files/main.coffee b/src/packages/Files/main.coffee index 4c28365..05aa9c2 100644 --- a/src/packages/Files/main.coffee +++ b/src/packages/Files/main.coffee @@ -44,9 +44,9 @@ class Files extends this.OS.GUI.BaseApplication text: "View", child: [ { text: "Refresh", dataid: "#{@name}-refresh" }, - { text: "Sidebar", dataid: "#{@name}-side" }, - { text: "Navigation bar", dataid: "#{@name}-nav" }, - { text: "Hidden files", dataid: "#{@name}-hidden" }, + { text: "Sidebar", switch: true, dataid: "#{@name}-side" }, + { text: "Navigation bar", switch: true , dataid: "#{@name}-nav" }, + { text: "Hidden files", switch: true, dataid: "#{@name}-hidden" }, { text: "Type", child: [ { text: "Icon view", radio: true, dataid: "#{@name}-icon", type: 'icon' }, { text: "List view", radio:true, checked: true, dataid: "#{@name}-list", type: 'list' }, diff --git a/src/themes/antos/afx-file-view.css b/src/themes/antos/afx-file-view.css index 9224ef8..04e53a1 100644 --- a/src/themes/antos/afx-file-view.css +++ b/src/themes/antos/afx-file-view.css @@ -106,4 +106,9 @@ afx-file-view afx-tree-view i.file:before{ color: #414339; font-style: normal; font-weight: normal; +} + +afx-file-view afx-tree-view div.afx_tree_item_selected i.file:before{ + background-color: #116cd6; + color:white; } \ No newline at end of file diff --git a/src/themes/antos/afx-list-view.css b/src/themes/antos/afx-list-view.css index c8ed698..8bfe313 100644 --- a/src/themes/antos/afx-list-view.css +++ b/src/themes/antos/afx-list-view.css @@ -26,6 +26,8 @@ afx-list-view li{ color: #414339; background-color: white; position: relative; + -webkit-user-select:none; + cursor:default; } afx-list-view li:nth-child(odd){ background-color: #f5F5F5; @@ -49,6 +51,7 @@ afx-list-view i.closable:before{ afx-list-view li > i { margin-right: 3px; + } afx-list-view li.selected { background-color: #116cd6; diff --git a/src/themes/antos/afx-menu.css b/src/themes/antos/afx-menu.css index 3f75a03..ff4aafc 100644 --- a/src/themes/antos/afx-menu.css +++ b/src/themes/antos/afx-menu.css @@ -22,6 +22,9 @@ afx-menu afx-switch span{ font-size: 16px; /*margin-top:5px;*/ } +afx-menu li:hover > a afx-switch span:before{ + color:white; +} afx-menu afx-menu ul { padding: 0; diff --git a/src/themes/antos/afx-tree-view.css b/src/themes/antos/afx-tree-view.css index afe9067..6b4d283 100644 --- a/src/themes/antos/afx-tree-view.css +++ b/src/themes/antos/afx-tree-view.css @@ -20,6 +20,8 @@ afx-tree-view li{ afx-tree-view div{ padding:3px; background-color: white; + -webkit-user-select:none; + cursor:default; } afx-tree-view i.icon-style { width: 16px;