mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 20:32:05 +08:00
添加设置UI
This commit is contained in:
@@ -4,11 +4,24 @@ api=https://store.deepinos.org/api/
|
||||
res=http://img.store.deepinos.org.cn/
|
||||
|
||||
[dirs]
|
||||
cache=%1/.cache/spark-store/res/
|
||||
download="%1/.local/spark-store/downloads/"
|
||||
cache="*/.cache/spark-store/res/"
|
||||
download="*/.local/spark-store/downloads/"
|
||||
|
||||
[download]
|
||||
servers=https://d1.store.deepinos.org.cn/;;https://d2.store.deepinos.org.cn/;;https://d3.store.deepinos.org.cn/;;https://d4.store.deepinos.org.cn/;;https://d5.store.deepinos.org.cn/
|
||||
servers="https://d1.store.deepinos.org.cn/;;https://d2.store.deepinos.org.cn/;;https://d3.store.deepinos.org.cn/;;https://d4.store.deepinos.org.cn/;;https://d5.store.deepinos.org.cn/"
|
||||
|
||||
[resource]
|
||||
concurrent=5
|
||||
|
||||
[misc]
|
||||
privacy_warned=0
|
||||
distro=none
|
||||
|
||||
[gui]
|
||||
theme=light
|
||||
|
||||
[pkgmgr]
|
||||
apt_repo=""
|
||||
|
||||
[internal]
|
||||
qss_path=":/stylesheets/stylesheets/default.css"
|
||||
|
||||
53
resource/icons/down-small.svg
Normal file
53
resource/icons/down-small.svg
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="15"
|
||||
height="10"
|
||||
viewBox="0 0 3.9687499 2.6458334"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||
sodipodi:docname="down-small.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="namedview7"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:zoom="13.001718"
|
||||
inkscape:cx="2.268931"
|
||||
inkscape:cy="17.036211"
|
||||
inkscape:window-width="1440"
|
||||
inkscape:window-height="830"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1"
|
||||
width="8px">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid136" />
|
||||
</sodipodi:namedview>
|
||||
<defs
|
||||
id="defs2" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
style="fill:none;fill-opacity:1;stroke:#808080;stroke-width:0.39;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none"
|
||||
d="M 0.55647555,0.79375 2.0043655,2.0149264 3.4522556,0.79375"
|
||||
id="path138"
|
||||
sodipodi:nodetypes="ccc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
53
resource/icons/up-small.svg
Normal file
53
resource/icons/up-small.svg
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="15"
|
||||
height="10"
|
||||
viewBox="0 0 3.9687499 2.6458334"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20, custom)"
|
||||
sodipodi:docname="up-small.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="namedview7"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="true"
|
||||
units="px"
|
||||
inkscape:zoom="13.001718"
|
||||
inkscape:cx="2.268931"
|
||||
inkscape:cy="14.267346"
|
||||
inkscape:window-width="1440"
|
||||
inkscape:window-height="830"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1"
|
||||
width="8px">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid136" />
|
||||
</sodipodi:namedview>
|
||||
<defs
|
||||
id="defs2" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<path
|
||||
style="fill:none;fill-opacity:1;stroke:#808080;stroke-width:0.39;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 3.4522556,1.9581625 2.0043656,0.73698623 0.55647554,1.9581625"
|
||||
id="path138"
|
||||
sodipodi:nodetypes="ccc" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
@@ -1,6 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/stylesheets">
|
||||
<file>stylesheets/mainwindow_dark.css</file>
|
||||
<file>stylesheets/default.css</file>
|
||||
</qresource>
|
||||
<qresource prefix="/info">
|
||||
<file>lipsum.txt</file>
|
||||
@@ -17,5 +17,7 @@
|
||||
<file>icons/daynight.svg</file>
|
||||
<file>icons/loading-icon.svg</file>
|
||||
<file>icons/back.svg</file>
|
||||
<file>icons/down-small.svg</file>
|
||||
<file>icons/up-small.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -39,7 +39,7 @@ QScrollArea
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
QLineEdit, QTextEdit
|
||||
QLineEdit, QTextEdit, QComboBox, QPlainTextEdit, QSpinBox
|
||||
{
|
||||
padding: 2px;
|
||||
border-radius: 7px;
|
||||
@@ -48,9 +48,60 @@ QLineEdit, QTextEdit
|
||||
selection-color: TXACC;
|
||||
selection-background-color: ACC_;
|
||||
}
|
||||
QLineEdit /*We can't apply gradient to TextEdit cuz it messes with scroll bar*/
|
||||
|
||||
QLineEdit, QComboBox /*We can't apply gradient to TextEdit cuz it messes with scroll bar*/
|
||||
{
|
||||
background:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 CBG_, stop:1 GBG_);
|
||||
/*background:qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 DCTL1, stop:1 DCTL3);*/
|
||||
/*Gradient doesn't work, LCTL/DCTL isn't adopting theme changes.
|
||||
To see effects, try it yourself*/
|
||||
}
|
||||
|
||||
QComboBox::drop-down
|
||||
{
|
||||
subcontrol-origin: padding;
|
||||
subcontrol-position: top right;
|
||||
width: 30px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
QSpinBox::up-button
|
||||
{
|
||||
subcontrol-origin: border;
|
||||
subcontrol-position: top right;
|
||||
width: 25px;
|
||||
height: 15px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
QSpinBox::down-button
|
||||
{
|
||||
subcontrol-origin: border;
|
||||
subcontrol-position: bottom right;
|
||||
width: 25px;
|
||||
height: 15px;
|
||||
border: none;
|
||||
}
|
||||
|
||||
QComboBox::down-arrow
|
||||
{
|
||||
image: url(:/icons/down-small.svg)
|
||||
}
|
||||
|
||||
QComboBox QAbstractItemView
|
||||
{
|
||||
border: 1px solid SHD;
|
||||
border-radius: 7px;
|
||||
selection-background-color: ACCH;
|
||||
}
|
||||
|
||||
QSpinBox::up-arrow
|
||||
{
|
||||
image: url(:/icons/up-small.svg);
|
||||
}
|
||||
|
||||
QSpinBox::down-arrow
|
||||
{
|
||||
image: url(:/icons/down-small.svg);
|
||||
}
|
||||
|
||||
QPushButton
|
||||
@@ -150,6 +201,12 @@ SpkAppItem::hover
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
#styConfTitle
|
||||
{
|
||||
font-weight: 400;
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
#styAppItmDesc
|
||||
{
|
||||
color: TXL1;
|
||||
Reference in New Issue
Block a user