New icons
87
backgrounds/leftwaves
Normal file
|
@ -0,0 +1,87 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="1280"
|
||||
height="800"
|
||||
viewBox="0 0 1280 800.00002"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="leftwaves.svg"
|
||||
inkscape:export-filename="/home/victor/Documents/theOSPack/icons/src/backgrounds/leftwaves/1280x800.png"
|
||||
inkscape:export-xdpi="118.125"
|
||||
inkscape:export-ydpi="118.125">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="0.49497475"
|
||||
inkscape:cx="164.01724"
|
||||
inkscape:cy="351.06024"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
borderlayer="true"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1016"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-252.3622)">
|
||||
<rect
|
||||
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:6;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect4172"
|
||||
width="1626.3456"
|
||||
height="1141.4724"
|
||||
x="-228.29448"
|
||||
y="90.696976" />
|
||||
<path
|
||||
style="fill:#006400;fill-opacity:0.78431373;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="M 401.42399,255.64173 C 384.07212,364.72179 265.39281,478.96199 263.5109,617.34459 265.05751,779.54701 377.03939,907.40468 378.92769,1067.6159 L -69.728842,1054.1702 132.17664,92.597534 Z"
|
||||
id="path4140-3"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccc" />
|
||||
<path
|
||||
style="fill:#006400;fill-opacity:0.78431373;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 287.24039,256.68238 c 6.68597,110.24901 -84.43255,247.48245 -56.29714,382.98774 36.64175,158.01708 173.65846,258.58529 210.2025,414.58448 L 0.22715294,1138.3038 -10.92975,155.82551 Z"
|
||||
id="path4140-3-9"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccc" />
|
||||
<path
|
||||
style="fill:#006400;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
d="m 179.80715,248.28077 c 1.34687,110.44335 -96.301202,243.11005 -74.75128,379.81736 28.95771,159.6041 160.95097,266.68027 189.90868,424.26407 l -444.46712,62.6295 36.36549,-981.86832 z"
|
||||
id="path4140"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccc" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.4 KiB |
|
@ -15,6 +15,7 @@ ChooseBackground::ChooseBackground(QWidget *parent) :
|
|||
ui->listWidget->addItem(new QListWidgetItem(getSvgIcon(":/backgrounds/shatter"), ""));
|
||||
ui->listWidget->addItem(new QListWidgetItem(getSvgIcon(":/backgrounds/slice"), ""));
|
||||
ui->listWidget->addItem(new QListWidgetItem(getSvgIcon(":/backgrounds/nav"), ""));
|
||||
ui->listWidget->addItem(new QListWidgetItem(getSvgIcon(":/backgrounds/leftwaves"), ""));
|
||||
|
||||
if (backPath.startsWith("inbuilt:")) { //Inbuilt background
|
||||
ui->radioButton->setChecked(true);
|
||||
|
@ -31,6 +32,8 @@ ChooseBackground::ChooseBackground(QWidget *parent) :
|
|||
ui->listWidget->item(4)->setSelected(true);
|
||||
} else if (selection == "nav") {
|
||||
ui->listWidget->item(5)->setSelected(true);
|
||||
} else if (selection == "leftwaves") {
|
||||
ui->listWidget->item(6)->setSelected(true);
|
||||
}
|
||||
ui->lineEdit->setEnabled(false);
|
||||
ui->pushButton_2->setEnabled(false);
|
||||
|
@ -109,6 +112,10 @@ void ChooseBackground::on_listWidget_currentRowChanged(int currentRow)
|
|||
settings.setValue("desktop/background", "inbuilt:nav");
|
||||
emit reloadBackgrounds();
|
||||
break;
|
||||
case 6:
|
||||
settings.setValue("desktop/background", "inbuilt:leftwaves");
|
||||
emit reloadBackgrounds();
|
||||
break;
|
||||
}
|
||||
this->setFocus();
|
||||
}
|
||||
|
|
68
images/dark/battery-charged.svg
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-charged.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#000000"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.4"
|
||||
inkscape:cx="11.928637"
|
||||
inkscape:cy="5.484367"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 6 2 L 3 9 L 6 9 L 6 14 L 6.7207031 12.318359 C 6.5904553 11.898271 6.5 11.462067 6.5 11 C 6.5 9.2498471 7.516099 7.743632 8.9804688 7 L 6 7 L 6 2 z M 11 7 A 4 4 0 0 0 7 11 A 4 4 0 0 0 11 15 A 4 4 0 0 0 15 11 A 4 4 0 0 0 11 7 z M 13.646484 8.6464844 L 14.353516 9.3535156 L 10.353516 13.353516 A 0.50005 0.50005 0 0 1 9.6464844 13.353516 L 7.6464844 11.353516 L 8.3535156 10.646484 L 10 12.292969 L 13.646484 8.6464844 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="path4163" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
68
images/dark/battery-charging.svg
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-charging.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#000000"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.4"
|
||||
inkscape:cx="11.941879"
|
||||
inkscape:cy="5.7167758"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 8,1038.3622 -3,7 3,0 0,5 3,-7 -3,0 z"
|
||||
id="path4163"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2 KiB |
75
images/dark/battery-critical.svg
Normal file
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-critical.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#000000"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="9.7216466"
|
||||
inkscape:cy="7.4580811"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
<inkscape:grid
|
||||
empspacing="4"
|
||||
originx="0.5"
|
||||
originy="0.5"
|
||||
dotted="true"
|
||||
type="xygrid"
|
||||
id="grid4702" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 3 1 L 3 2 L 1 2 L 1 2.5 L 1 15 L 9 15 L 9 2 L 7 2 L 7 1 L 3 1 z M 12.5 1 L 11 4.5 L 12.5 4.5 L 12.5 7 L 14 3.5 L 12.5 3.5 L 12.5 1 z M 2 3 L 8 3 L 8 14 L 2 14 L 2 3 z M 11 9 L 11 10 L 11 11 L 11 12 L 12 12 L 12 16 L 13 16 L 13 12 L 14 12 L 14 11 L 14 10 L 14 9 L 13 9 L 13 10 L 12 10 L 12 9 L 11 9 z M 3 12 L 3 13 L 7 13 L 7 12 L 3 12 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="rect4704" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.2 KiB |
75
images/dark/battery-low.svg
Normal file
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-low.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#000000"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="10.438522"
|
||||
inkscape:cy="5.7726248"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4702"
|
||||
empspacing="4"
|
||||
originx="0.5"
|
||||
originy="0.5"
|
||||
dotted="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 6 1 L 6 2 L 4 2 L 4 2.5 L 4 15 L 12 15 L 12 2 L 10 2 L 10 1 L 6 1 z M 5 3 L 11 3 L 11 14 L 5 14 L 5 3 z M 6 12 L 6 13 L 10 13 L 10 12 L 6 12 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="rect4704" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3 KiB |
68
images/dark/battery-not-charging.svg
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-not-charging.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#000000"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="8.8137426"
|
||||
inkscape:cy="6.4137184"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 8 2 L 5 9 L 6.2929688 9 L 8.2929688 7 L 8 7 L 8 2 z M 9.7070312 7 L 7.7070312 9 L 8 9 L 8 14 L 11 7 L 9.7070312 7 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="path4163" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
68
images/light/battery-charged.svg
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-charged.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.4"
|
||||
inkscape:cx="11.928637"
|
||||
inkscape:cy="5.484367"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 6 2 L 3 9 L 6 9 L 6 14 L 6.7207031 12.318359 C 6.5904553 11.898271 6.5 11.462067 6.5 11 C 6.5 9.2498471 7.516099 7.743632 8.9804688 7 L 6 7 L 6 2 z M 11 7 A 4 4 0 0 0 7 11 A 4 4 0 0 0 11 15 A 4 4 0 0 0 15 11 A 4 4 0 0 0 11 7 z M 13.646484 8.6464844 L 14.353516 9.3535156 L 10.353516 13.353516 A 0.50005 0.50005 0 0 1 9.6464844 13.353516 L 7.6464844 11.353516 L 8.3535156 10.646484 L 10 12.292969 L 13.646484 8.6464844 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="path4163" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
68
images/light/battery-charging.svg
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-charging.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="22.4"
|
||||
inkscape:cx="11.941879"
|
||||
inkscape:cy="5.7167758"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 8,1038.3622 -3,7 3,0 0,5 3,-7 -3,0 z"
|
||||
id="path4163"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2 KiB |
75
images/light/battery-critical.svg
Normal file
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-critical.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="9.7216466"
|
||||
inkscape:cy="7.4580811"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
<inkscape:grid
|
||||
empspacing="4"
|
||||
originx="0.5"
|
||||
originy="0.5"
|
||||
dotted="true"
|
||||
type="xygrid"
|
||||
id="grid4702" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 3 1 L 3 2 L 1 2 L 1 2.5 L 1 15 L 9 15 L 9 2 L 7 2 L 7 1 L 3 1 z M 12.5 1 L 11 4.5 L 12.5 4.5 L 12.5 7 L 14 3.5 L 12.5 3.5 L 12.5 1 z M 2 3 L 8 3 L 8 14 L 2 14 L 2 3 z M 11 9 L 11 10 L 11 11 L 11 12 L 12 12 L 12 16 L 13 16 L 13 12 L 14 12 L 14 11 L 14 10 L 14 9 L 13 9 L 13 10 L 12 10 L 12 9 L 11 9 z M 3 12 L 3 13 L 7 13 L 7 12 L 3 12 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="rect4704" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.2 KiB |
75
images/light/battery-low.svg
Normal file
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-low.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="10.438522"
|
||||
inkscape:cy="5.7726248"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4702"
|
||||
empspacing="4"
|
||||
originx="0.5"
|
||||
originy="0.5"
|
||||
dotted="true" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;baseline-shift:baseline;text-anchor:start;white-space:normal;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"
|
||||
d="M 6 1 L 6 2 L 4 2 L 4 2.5 L 4 15 L 12 15 L 12 2 L 10 2 L 10 1 L 6 1 z M 5 3 L 11 3 L 11 14 L 5 14 L 5 3 z M 6 12 L 6 13 L 10 13 L 10 12 L 6 12 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="rect4704" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3 KiB |
68
images/light/battery-not-charging.svg
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="battery-not-charging.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.678384"
|
||||
inkscape:cx="8.8137426"
|
||||
inkscape:cy="6.4137184"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:window-width="1680"
|
||||
inkscape:window-height="1007"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid4136"
|
||||
empspacing="4" />
|
||||
</sodipodi:namedview>
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(0,-1036.3622)">
|
||||
<path
|
||||
style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 8 2 L 5 9 L 6.2929688 9 L 8.2929688 7 L 8 7 L 8 2 z M 9.7070312 7 L 7.7070312 9 L 8 9 L 8 14 L 11 7 L 9.7070312 7 z "
|
||||
transform="translate(0,1036.3622)"
|
||||
id="path4163" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
20
main.cpp
|
@ -47,21 +47,16 @@ void catch_signal(int signal) {
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
/*struct sigaction segvact;
|
||||
segvact.sa_handler = catch_signal;
|
||||
sigemptyset(&segvact.sa_mask);
|
||||
segvact.sa_flags = 0;
|
||||
sigaction(SIGSEGV, &segvact, 0);*/
|
||||
|
||||
signal(SIGSEGV, *catch_signal);
|
||||
signal(SIGBUS, *catch_signal);
|
||||
signal(SIGABRT, *catch_signal);
|
||||
signal(SIGILL, *catch_signal);
|
||||
signal(SIGSEGV, *catch_signal); //Catch SIGSEGV
|
||||
signal(SIGBUS, *catch_signal); //Catch SIGBUS
|
||||
signal(SIGABRT, *catch_signal); //Catch SIGABRT
|
||||
signal(SIGILL, *catch_signal); //Catch SIGILL
|
||||
|
||||
QApplication a(argc, argv);
|
||||
|
||||
bool showSplash = true;
|
||||
bool autoStart = true;
|
||||
bool startKscreen = true;
|
||||
|
||||
QStringList args = a.arguments();
|
||||
args.removeFirst();
|
||||
|
@ -71,12 +66,15 @@ int main(int argc, char *argv[])
|
|||
qDebug() << "Usage: theshell [OPTIONS]";
|
||||
qDebug() << " -s, --no-splash-screen Don't show the splash screen";
|
||||
qDebug() << " -a, --no-autostart Don't autostart executables";
|
||||
qDebug() << " -k, --no-kscreen Don't autostart KScreen";
|
||||
qDebug() << " -h, --help Show this help output";
|
||||
return 0;
|
||||
} else if (arg == "-s" || arg == "--no-splash-screen") {
|
||||
showSplash = false;
|
||||
} else if (arg == "-a" || arg == "--no-autostart") {
|
||||
autoStart = false;
|
||||
} else if (arg == "-k" || arg == "--no-kscreen") {
|
||||
startKscreen = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -97,7 +95,7 @@ int main(int argc, char *argv[])
|
|||
lockfile.write(QByteArray());
|
||||
lockfile.close();
|
||||
|
||||
{
|
||||
if (startKscreen) {
|
||||
QDBusMessage kscreen = QDBusMessage::createMethodCall("org.kde.kded5", "/kded", "org.kde.kded5", "loadModule");
|
||||
QVariantList args;
|
||||
args.append("kscreen");
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#include "notificationdbus.h"
|
||||
|
||||
extern QIcon getIconFromTheme(QString name, QColor textColor);
|
||||
|
||||
NotificationDBus::NotificationDBus(QObject *parent) : QObject(parent)
|
||||
{
|
||||
new NotificationsAdaptor(this);
|
||||
|
@ -56,8 +58,29 @@ uint NotificationDBus::Notify(QString app_name, uint replaces_id,
|
|||
}
|
||||
|
||||
if (!transient) {
|
||||
|
||||
QColor color = QApplication::palette("QLabel").color(QPalette::Window);
|
||||
QIcon icon = QIcon::fromTheme("dialog-warning");
|
||||
if (hints.keys().contains("urgency")) {
|
||||
if (hints.keys().contains("category")) {
|
||||
QString category = hints.value("category").toString();
|
||||
if (category == "network.connected") {
|
||||
icon = QIcon::fromTheme("network-connect").pixmap(24, 24);
|
||||
} else if (category == "network.disconnected") {
|
||||
icon = QIcon::fromTheme("network-disconnect").pixmap(24, 24);
|
||||
} else if (category == "email.arrived") {
|
||||
icon = QIcon::fromTheme("mail-receive").pixmap(24, 24);
|
||||
} else if (category == "battery.charging") {
|
||||
icon = getIconFromTheme("battery-charging.svg", color).pixmap(24, 24);
|
||||
} else if (category == "battery.charged") {
|
||||
icon = getIconFromTheme("battery-charged.svg", color).pixmap(24, 24);
|
||||
} else if (category == "battery.discharging") {
|
||||
icon = getIconFromTheme("battery-not-charging.svg", color).pixmap(24, 24);
|
||||
} else if (category == "battery.low") {
|
||||
icon = getIconFromTheme("battery-low.svg", color).pixmap(24, 24);
|
||||
} else if (category == "battery.critical") {
|
||||
icon = getIconFromTheme("battery-critical.svg", color).pixmap(24, 24);
|
||||
}
|
||||
} else if (hints.keys().contains("urgency")) {
|
||||
QChar urgency = hints.value("urgency").toChar();
|
||||
if (urgency == 0) {
|
||||
icon = QIcon::fromTheme("dialog-information");
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
#include "notificationdialog.h"
|
||||
#include "ui_notificationdialog.h"
|
||||
|
||||
extern QIcon getIconFromTheme(QString name, QColor textColor);
|
||||
|
||||
NotificationDialog::NotificationDialog(QString title, QString body, QStringList actions, int id, QVariantMap hints, int timeout, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::NotificationDialog)
|
||||
|
@ -46,6 +48,11 @@ NotificationDialog::NotificationDialog(QString title, QString body, QStringList
|
|||
//w.setGeometry(screenGeometry.x() - 1, screenGeometry.y(), screenGeometry.width(), w.height());
|
||||
this->setGeometry(QRect(screenGeometry.x(), screenGeometry.y() - this->height(), screenGeometry.width(), this->height()));
|
||||
|
||||
QColor color = this->palette().color(QPalette::Window);
|
||||
|
||||
|
||||
// Don't forget to add extra categories to the notificationdbus class too!
|
||||
|
||||
if (hints.keys().contains("category")) {
|
||||
QString category = hints.value("category").toString();
|
||||
if (category == "network.connected") {
|
||||
|
@ -54,6 +61,16 @@ NotificationDialog::NotificationDialog(QString title, QString body, QStringList
|
|||
ui->label->setPixmap(QIcon::fromTheme("network-disconnect").pixmap(24, 24));
|
||||
} else if (category == "email.arrived") {
|
||||
ui->label->setPixmap(QIcon::fromTheme("mail-receive").pixmap(24, 24));
|
||||
} else if (category == "battery.charging") {
|
||||
ui->label->setPixmap(getIconFromTheme("battery-charging.svg", color).pixmap(24, 24));
|
||||
} else if (category == "battery.charged") {
|
||||
ui->label->setPixmap(getIconFromTheme("battery-charged.svg", color).pixmap(24, 24));
|
||||
} else if (category == "battery.discharging") {
|
||||
ui->label->setPixmap(getIconFromTheme("battery-not-charging.svg", color).pixmap(24, 24));
|
||||
} else if (category == "battery.low") {
|
||||
ui->label->setPixmap(getIconFromTheme("battery-low.svg", color).pixmap(24, 24));
|
||||
} else if (category == "battery.critical") {
|
||||
ui->label->setPixmap(getIconFromTheme("battery-critical.svg", color).pixmap(24, 24));
|
||||
} else {
|
||||
ui->label->setPixmap(QIcon::fromTheme("dialog-warning").pixmap(24, 24));
|
||||
}
|
||||
|
|
|
@ -9,9 +9,19 @@
|
|||
</qresource>
|
||||
<qresource prefix="/icons/dark">
|
||||
<file>images/dark/flight.svg</file>
|
||||
<file>images/dark/battery-charged.svg</file>
|
||||
<file>images/dark/battery-charging.svg</file>
|
||||
<file>images/dark/battery-not-charging.svg</file>
|
||||
<file>images/dark/battery-low.svg</file>
|
||||
<file>images/dark/battery-critical.svg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/icons/light">
|
||||
<file>images/light/flight.svg</file>
|
||||
<file>images/light/battery-charged.svg</file>
|
||||
<file>images/light/battery-charging.svg</file>
|
||||
<file>images/light/battery-not-charging.svg</file>
|
||||
<file>images/light/battery-low.svg</file>
|
||||
<file>images/light/battery-critical.svg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/icons">
|
||||
<file>icon.svg</file>
|
||||
|
@ -33,5 +43,6 @@
|
|||
<file alias="shatter">backgrounds/shatter</file>
|
||||
<file alias="slice">backgrounds/slice</file>
|
||||
<file alias="nav">backgrounds/nav</file>
|
||||
<file alias="leftwaves">backgrounds/leftwaves</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
111
upowerdbus.cpp
|
@ -50,9 +50,21 @@ void UPowerDBus::DeviceChanged() {
|
|||
qulonglong timeToEmpty = i->property("TimeToEmpty").toULongLong();
|
||||
QString state;
|
||||
switch (i->property("State").toUInt()) {
|
||||
case 1:
|
||||
|
||||
case 1: //Charging
|
||||
state = " and charging";
|
||||
|
||||
if (!isCharging) {
|
||||
QVariantMap hints;
|
||||
hints.insert("category", "battery.charging");
|
||||
hints.insert("transient", true);
|
||||
this->notificationDBus->Notify("theShell", 0, "", "Charging",
|
||||
"The power cable has been plugged in and the battery is now being charged."
|
||||
, QStringList(), hints, 10000);
|
||||
}
|
||||
|
||||
isCharging = true;
|
||||
isConnectedToPower = true;
|
||||
|
||||
if (timeToFull != 0) {
|
||||
state.append(" (" + QDateTime::fromTime_t(timeToFull).toUTC().toString("h:mm") + ")");
|
||||
}
|
||||
|
@ -65,49 +77,86 @@ void UPowerDBus::DeviceChanged() {
|
|||
batteryLowNotificationNumber = 0;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
case 2: //Discharging
|
||||
state = " battery left";
|
||||
if (timeToEmpty != 0) {
|
||||
state.append(" (" + QDateTime::fromTime_t(timeToEmpty).toUTC().toString("h:mm") + ")");
|
||||
if (isConnectedToPower) {
|
||||
QVariantMap hints;
|
||||
hints.insert("category", "battery.discharging");
|
||||
hints.insert("transient", true);
|
||||
this->notificationDBus->Notify("theShell", 0, "", "Discharging",
|
||||
"The power cable has been removed, and your PC is now running on battery power."
|
||||
, QStringList(), hints, 10000);
|
||||
}
|
||||
isConnectedToPower = false;
|
||||
isCharging = false;
|
||||
|
||||
if (timeToEmpty <= 600 && tenMinuteBatteryWarning == false) { //Ten minutes left! Critical!
|
||||
QVariantMap hints;
|
||||
hints.insert("urgency", 2);
|
||||
batteryLowNotificationNumber = this->notificationDBus->Notify("theShell", batteryLowNotificationNumber, "", "Battery Critically Low",
|
||||
"You have about 10 minutes of battery remaining."
|
||||
" Either plug in your PC or save your work"
|
||||
" and power off the PC and change the battery.", QStringList(), hints, 0);
|
||||
if (timeToEmpty != 0) {
|
||||
state.append(" (" + QDateTime::fromTime_t(timeToEmpty).toUTC().toString("h:mm") + ")");
|
||||
|
||||
tenMinuteBatteryWarning = true;
|
||||
halfHourBatteryWarning = true;
|
||||
hourBatteryWarning = true;
|
||||
} else if (timeToEmpty <= 1800 && halfHourBatteryWarning == false) { //Half hour left! Low!
|
||||
batteryLowNotificationNumber = this->notificationDBus->Notify("theShell", batteryLowNotificationNumber, "", "Battery Low",
|
||||
"You have about half an hour of battery remaining."
|
||||
" You should plug in your PC now.", QStringList(), QVariantMap(), 10000);
|
||||
if (timeToEmpty <= 600 && tenMinuteBatteryWarning == false) { //Ten minutes left! Critical!
|
||||
QVariantMap hints;
|
||||
hints.insert("urgency", 2);
|
||||
hints.insert("category", "battery.critical");
|
||||
batteryLowNotificationNumber = this->notificationDBus->Notify("theShell", batteryLowNotificationNumber, "", "Battery Critically Low",
|
||||
"You have about 10 minutes of battery remaining."
|
||||
" Either plug in your PC or save your work"
|
||||
" and power off the PC and change the battery.", QStringList(), hints, 0);
|
||||
|
||||
tenMinuteBatteryWarning = true;
|
||||
halfHourBatteryWarning = true;
|
||||
hourBatteryWarning = true;
|
||||
} else if (timeToEmpty <= 1800 && halfHourBatteryWarning == false) { //Half hour left! Low!
|
||||
QVariantMap hints;
|
||||
hints.insert("category", "battery.low");
|
||||
batteryLowNotificationNumber = this->notificationDBus->Notify("theShell", batteryLowNotificationNumber, "", "Battery Low",
|
||||
"You have about half an hour of battery remaining."
|
||||
" You should plug in your PC now.", QStringList(), hints, 10000);
|
||||
|
||||
|
||||
halfHourBatteryWarning = true;
|
||||
hourBatteryWarning = true;
|
||||
} else if (timeToEmpty <= 3600 && hourBatteryWarning == false) { //One hour left! Warning!
|
||||
batteryLowNotificationNumber = this->notificationDBus->Notify("theShell", batteryLowNotificationNumber, "", "Battery Warning",
|
||||
"You have about an hour of battery remaining."
|
||||
" You may want to plug in your PC now.", QStringList(), QVariantMap(), 10000);
|
||||
hourBatteryWarning = true;
|
||||
}
|
||||
halfHourBatteryWarning = true;
|
||||
hourBatteryWarning = true;
|
||||
} else if (timeToEmpty <= 3600 && hourBatteryWarning == false) { //One hour left! Warning!
|
||||
QVariantMap hints;
|
||||
hints.insert("urgency", 2);
|
||||
hints.insert("category", "battery.low");
|
||||
batteryLowNotificationNumber = this->notificationDBus->Notify("theShell", batteryLowNotificationNumber, "", "Battery Warning",
|
||||
"You have about an hour of battery remaining."
|
||||
" You may want to plug in your PC now.", QStringList(), hints, 10000);
|
||||
hourBatteryWarning = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
case 3: //Empty
|
||||
state = " - Empty";
|
||||
break;
|
||||
case 4:
|
||||
case 4: //Charged
|
||||
state = " Fully Charged.";
|
||||
if (isCharging) {
|
||||
QVariantMap hints;
|
||||
hints.insert("category", "battery.charged");
|
||||
hints.insert("transient", true);
|
||||
this->notificationDBus->Notify("theShell", 0, "", "Battery Charged",
|
||||
"The battery has been charged completely."
|
||||
, QStringList(), hints, 10000);
|
||||
}
|
||||
isCharging = false;
|
||||
isConnectedToPower = true;
|
||||
break;
|
||||
case 5:
|
||||
case 5: //Pending Charge
|
||||
state = " Not charging";
|
||||
break;
|
||||
case 6:
|
||||
case 6: //Pending Discharge
|
||||
state = " Fully Charged.";
|
||||
if (isCharging) {
|
||||
QVariantMap hints;
|
||||
hints.insert("category", "battery.charged");
|
||||
hints.insert("transient", true);
|
||||
this->notificationDBus->Notify("theShell", 0, "", "Battery Charged",
|
||||
"The battery has been charged completely."
|
||||
, QStringList(), hints, 10000);
|
||||
}
|
||||
isCharging = false;
|
||||
isConnectedToPower = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -36,6 +36,9 @@ private:
|
|||
bool halfHourBatteryWarning = false;
|
||||
bool tenMinuteBatteryWarning = false;
|
||||
|
||||
bool isCharging = false;
|
||||
bool isConnectedToPower = false;
|
||||
|
||||
int batteryLowNotificationNumber = 0;
|
||||
|
||||
NotificationDBus* notificationDBus;
|
||||
|
|