diff --git a/src/packages/Files/main.coffee b/src/packages/Files/main.coffee index e1750bd..81bde34 100644 --- a/src/packages/Files/main.coffee +++ b/src/packages/Files/main.coffee @@ -77,6 +77,12 @@ class Files extends this.OS.GUI.BaseApplication @bindKey "CTRL-C", () -> me.actionEdit "#{me.name}-copy" @bindKey "CTRL-P", () -> me.actionEdit "#{me.name}-paste" + (@find "btgrid").set "onbtclick", (e) -> + me.view.set 'view', "icon" + me.setting.view = "icon" + (@find "btlist").set "onbtclick", (e) -> + me.view.set 'view', "list" + me.setting.view = "list" @chdir null applySetting: (k) -> @@ -154,7 +160,7 @@ class Files extends this.OS.GUI.BaseApplication me.view.set 'view', e.item.data.type me.setting.view = e.item.data.type }, - ], onmenuselect: (e) -> me.actionView e + ], onmenuselect: (e) -> me.actionView e.item.data.dataid }, ] menu @@ -168,7 +174,7 @@ class Files extends this.OS.GUI.BaseApplication @trigger "resize" actionView: (e) -> - switch e.item.data.dataid + switch e when "#{@name}-hidden" #@.view.set "showhidden", e.item.data.checked @registry "showhidden", e.item.data.checked diff --git a/src/packages/Files/main.css b/src/packages/Files/main.css index 417349f..e8f7d18 100644 --- a/src/packages/Files/main.css +++ b/src/packages/Files/main.css @@ -29,9 +29,8 @@ afx-app-window[data-id ='files-app-window'] afx-grid-view afx-grid-row.grid_row_ } afx-app-window[data-id ='files-app-window'] button{ height: 23px; - border-radius: 3px; + border-radius: 0; padding-top:2px; - margin-left: 5px; } afx-app-window[data-id ='files-app-window'] input{ diff --git a/src/packages/Files/scheme.html b/src/packages/Files/scheme.html index 40a0888..737f121 100644 --- a/src/packages/Files/scheme.html +++ b/src/packages/Files/scheme.html @@ -1,9 +1,12 @@ - + -
+
+ +
+