Added Force Save button to mobile UI
This commit is contained in:
parent
c6b9c7588e
commit
f42da47b6e
3 changed files with 9 additions and 73 deletions
1
assets/data/icons/RemixIcon/save-line.svg
Normal file
1
assets/data/icons/RemixIcon/save-line.svg
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M7 19V13H17V19H19V7.82843L16.1716 5H5V19H7ZM4 3H17L21 7V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM9 15V19H15V15H9Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 262 B |
|
|
@ -1,73 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
||||||
|
|
||||||
<svg
|
|
||||||
width="32"
|
|
||||||
height="32"
|
|
||||||
viewBox="0 0 8.4666666 8.4666666"
|
|
||||||
version="1.1"
|
|
||||||
id="svg1"
|
|
||||||
inkscape:version="1.4 (e7c3feb100, 2024-10-09)"
|
|
||||||
sodipodi:docname="save.svg"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg">
|
|
||||||
<sodipodi:namedview
|
|
||||||
id="namedview1"
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#000000"
|
|
||||||
borderopacity="0.25"
|
|
||||||
inkscape:showpageshadow="2"
|
|
||||||
inkscape:pageopacity="0.0"
|
|
||||||
inkscape:pagecheckerboard="0"
|
|
||||||
inkscape:deskcolor="#d1d1d1"
|
|
||||||
inkscape:document-units="px"
|
|
||||||
showgrid="true"
|
|
||||||
inkscape:zoom="23.020095"
|
|
||||||
inkscape:cx="5.1911167"
|
|
||||||
inkscape:cy="10.838357"
|
|
||||||
inkscape:window-width="2168"
|
|
||||||
inkscape:window-height="1354"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="0"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
inkscape:current-layer="layer1">
|
|
||||||
<inkscape:grid
|
|
||||||
id="grid1"
|
|
||||||
units="px"
|
|
||||||
originx="0"
|
|
||||||
originy="0"
|
|
||||||
spacingx="0.26458333"
|
|
||||||
spacingy="0.26458333"
|
|
||||||
empcolor="#0099e5"
|
|
||||||
empopacity="0.30196078"
|
|
||||||
color="#0099e5"
|
|
||||||
opacity="0.14901961"
|
|
||||||
empspacing="5"
|
|
||||||
enabled="true"
|
|
||||||
visible="true"
|
|
||||||
dotted="true" />
|
|
||||||
</sodipodi:namedview>
|
|
||||||
<defs
|
|
||||||
id="defs1" />
|
|
||||||
<g
|
|
||||||
inkscape:label="Layer 1"
|
|
||||||
inkscape:groupmode="layer"
|
|
||||||
id="layer1">
|
|
||||||
<path
|
|
||||||
style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:0.79375;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
|
||||||
d="M 1.0583333,1.0583333 H 2.6458332 V 2.6458332 H 4.4979164 V 1.0583333 l 1.5874999,0 1.3229166,1.3229166 v 5.027083 H 1.0583333 Z"
|
|
||||||
id="path1"
|
|
||||||
sodipodi:nodetypes="cccccccccc" />
|
|
||||||
<path
|
|
||||||
style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:0.79375;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
|
||||||
d="M 2.6458332,1.0583333 H 4.4979163 Z"
|
|
||||||
id="path2" />
|
|
||||||
<path
|
|
||||||
style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:0.79375;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none"
|
|
||||||
d="m 2.3812499,4.7624997 0,1.3229166 h 3.7041664 l 0,-1.3229166 z"
|
|
||||||
id="path3"
|
|
||||||
sodipodi:nodetypes="ccccc" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 2.4 KiB |
|
|
@ -611,6 +611,14 @@ void PhoneDrawingProgramScreen::top_toolbar_hidden_button_popup(GUIStuff::Elemen
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
l.emplace_back(TopToolbarRemainingAreaButton{
|
||||||
|
.name = "Force Save",
|
||||||
|
.svgPath = "data/icons/RemixIcon/save-line.svg",
|
||||||
|
.onClick = [&] {
|
||||||
|
save_to_file();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
l.emplace_back(TopToolbarRemainingAreaButton{
|
l.emplace_back(TopToolbarRemainingAreaButton{
|
||||||
.name = "Canvas Color",
|
.name = "Canvas Color",
|
||||||
.svgPath = "data/icons/RemixIcon/settings-3-line.svg",
|
.svgPath = "data/icons/RemixIcon/settings-3-line.svg",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue