add clipper

This commit is contained in:
lxsang
2020-07-14 22:16:09 +02:00
parent 4b9645edb1
commit 9192578205
17 changed files with 7361 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# Clipper
VDE screen capture tool.
Clipper use `html2canvas` to capture AntOS desktop or a specific window.
It is able to crop the captured image before saving to a file
## Change logs
* v0.1.0-a initial version
## Credit
* [html2canvas](https://html2canvas.hertzen.com/)

BIN
Clipper/build/debug/bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -0,0 +1,21 @@
afx-app-window[data-id = "Clipper"] div[data-id = "wrapper"] {
overflow: auto;
background-image: url("bg.jpg");
background-repeat: repeat;
}
afx-app-window[data-id = "Clipper"] div[data-id = "toolbar"] {
padding-left: 5px;
display:inline-block;
text-align:left;
}
afx-app-window[data-id = "Clipper"] afx-button[data-id = "btnCrop"] button.selected {
background-color: #116cd6;
color:white;
}
afx-app-window[data-id = "Clipper"] div[data-id = "cropwin"] {
border:1px dashed chocolate;
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,14 @@
{
"app":"Clipper",
"name":"Clipper",
"description":"Clipper",
"info":{
"author": "",
"email": ""
},
"version":"0.1.0-a",
"category":"Other",
"iconclass":"fa fa-scissors",
"mimes":["none"],
"locale": {}
}

View File

@ -0,0 +1,15 @@
<afx-app-window apptitle="Clipper" width="500" height="400" data-id="Clipper">
<afx-hbox >
<afx-vbox>
<div data-height="30" data-id="toolbar">
<afx-button data-id="btnCptScreen" text="__(Capture screen)" iconclass="fa fa-camera-retro"></afx-button>
<afx-button data-id="btnCptWindow" text="__(Capture a window)" iconclass="fa fa-window-maximize"></afx-button>
<afx-button data-id="btnCrop" text="__(Crop)" toggle="true" selected="false" iconclass="fa fa-crop"></afx-button>
</div>
<div data-id="wrapper">
<canvas data-id="scene"></canvas>
<div data-id="cropwin"></div>
</div>
</afx-vbox>
</afx-hbox>
</afx-app-window>