mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-27 03:09:45 +02:00
add setting package
This commit is contained in:
11
src/packages/Setting/Makefile
Normal file
11
src/packages/Setting/Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
coffee_files = main.coffee
|
||||
|
||||
jsfiles =
|
||||
|
||||
cssfiles = main.css
|
||||
|
||||
copyfiles = scheme.html package.json schemes
|
||||
|
||||
|
||||
PKG_NAME=Setting
|
||||
include ../pkg.mk
|
25
src/packages/Setting/main.coffee
Normal file
25
src/packages/Setting/main.coffee
Normal file
@ -0,0 +1,25 @@
|
||||
class Setting extends this.OS.GUI.BaseApplication
|
||||
constructor: (args) ->
|
||||
super "Setting", args
|
||||
|
||||
main: () ->
|
||||
me = @
|
||||
@container = @find "container"
|
||||
@container.setTabs [
|
||||
{
|
||||
text: "Appearance",
|
||||
iconclass: "fa fa-paint-brush",
|
||||
url: "#{@path()}/schemes/appearance.html",
|
||||
f: () ->
|
||||
console.log "finish init appearance"
|
||||
},
|
||||
{
|
||||
text: "VFS",
|
||||
iconclass: "fa fa-inbox" ,
|
||||
url: "#{@path()}/schemes/vfs.html" ,
|
||||
f: () ->
|
||||
console.log "finish init VFS"
|
||||
}
|
||||
]
|
||||
Setting.singleton = true
|
||||
this.OS.register "Setting", Setting
|
11
src/packages/Setting/main.css
Normal file
11
src/packages/Setting/main.css
Normal file
@ -0,0 +1,11 @@
|
||||
afx-app-window[data-id = "setting-window"] afx-tab-container afx-tab-bar afx-list-view > div > ul > li{
|
||||
float:none;
|
||||
border-radius: 0;
|
||||
font-weight: bold;
|
||||
padding-top:3px;
|
||||
padding-bottom: 3px;
|
||||
border:0;
|
||||
}
|
||||
afx-app-window[data-id = "setting-window"] afx-tab-container div[data-ref="container"]{
|
||||
border-left: 1px solid #cbcbcb;
|
||||
}
|
13
src/packages/Setting/package.json
Normal file
13
src/packages/Setting/package.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"app":"Setting",
|
||||
"name":"System setting",
|
||||
"description":"System setting",
|
||||
"info":{
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "xsang.le@gmail.com"
|
||||
},
|
||||
"version":"0.1a",
|
||||
"category":"System",
|
||||
"iconclass":"fa fa-wrench",
|
||||
"mimes":["none"]
|
||||
}
|
5
src/packages/Setting/scheme.html
Normal file
5
src/packages/Setting/scheme.html
Normal file
@ -0,0 +1,5 @@
|
||||
<afx-app-window data-id = "setting-window" apptitle="Setting" width="600" height="400">
|
||||
<afx-vbox>
|
||||
<afx-tab-container data-id = "container" barwidth="120" bar="left"></afx-tab-container>
|
||||
</afx-vbox>
|
||||
</afx-app-window>
|
14
src/packages/Setting/schemes/appearance.html
Normal file
14
src/packages/Setting/schemes/appearance.html
Normal file
@ -0,0 +1,14 @@
|
||||
<afx-vbox>
|
||||
<afx-label text = "__(Wallpaper)" class = "header" data-height="30"></afx-label>
|
||||
<afx-hbox>
|
||||
<afx-list-view data-width="120"></afx-list-view>
|
||||
<div>
|
||||
</div>
|
||||
</afx-hbox>
|
||||
<afx-label text = "__(Theme)" class = "header" data-height="30"></afx-label>
|
||||
<afx-list-view data-height="50" dropdown="true"></afx-list-view>
|
||||
<afx-hbox data-height="30" >
|
||||
<div></div>
|
||||
<afx-button text="__(Save)" iconclass="fa fa-save" data-width="50"></afx-button>
|
||||
</afx-hbox>
|
||||
</afx-vbox>
|
1
src/packages/Setting/schemes/vfs.html
Normal file
1
src/packages/Setting/schemes/vfs.html
Normal file
@ -0,0 +1 @@
|
||||
<afx-label text = "example2" ></afx-label>
|
Reference in New Issue
Block a user