Add 'resources/themes/cura/' from commit 'ff0b05acb2
'
git-subtree-dir: resources/themes/cura git-subtree-mainline:63e8cf72a3
git-subtree-split:ff0b05acb2
202
resources/themes/cura/fonts/LICENSE.txt
Normal file
|
@ -0,0 +1,202 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
BIN
resources/themes/cura/fonts/Roboto-Black.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-BlackItalic.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-Bold.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-BoldItalic.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-Italic.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-Light.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-LightItalic.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-Medium.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-MediumItalic.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-Regular.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-Thin.ttf
Normal file
BIN
resources/themes/cura/fonts/Roboto-ThinItalic.ttf
Normal file
3377
resources/themes/cura/icons/application.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3384
resources/themes/cura/icons/category_adhesion.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3398
resources/themes/cura/icons/category_cool.svg
Normal file
After Width: | Height: | Size: 248 KiB |
3377
resources/themes/cura/icons/category_fixes.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3386
resources/themes/cura/icons/category_infill.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3396
resources/themes/cura/icons/category_material.svg
Normal file
After Width: | Height: | Size: 248 KiB |
3378
resources/themes/cura/icons/category_quality.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3405
resources/themes/cura/icons/category_speed.svg
Normal file
After Width: | Height: | Size: 249 KiB |
3382
resources/themes/cura/icons/category_support.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3390
resources/themes/cura/icons/category_unknown.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3376
resources/themes/cura/icons/mirror.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3378
resources/themes/cura/icons/open.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3374
resources/themes/cura/icons/plugin.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3390
resources/themes/cura/icons/printsetup.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3394
resources/themes/cura/icons/rotate.svg
Normal file
After Width: | Height: | Size: 248 KiB |
3374
resources/themes/cura/icons/rotate_layflat.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3388
resources/themes/cura/icons/rotate_reset.svg
Normal file
After Width: | Height: | Size: 248 KiB |
3382
resources/themes/cura/icons/save.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3381
resources/themes/cura/icons/save_sd.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3377
resources/themes/cura/icons/scale.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3385
resources/themes/cura/icons/scale_max.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3387
resources/themes/cura/icons/scale_reset.svg
Normal file
After Width: | Height: | Size: 247 KiB |
3378
resources/themes/cura/icons/view_layer.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3373
resources/themes/cura/icons/view_normal.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3376
resources/themes/cura/icons/view_xray.svg
Normal file
After Width: | Height: | Size: 246 KiB |
3384
resources/themes/cura/icons/viewmode.svg
Normal file
After Width: | Height: | Size: 247 KiB |
83
resources/themes/cura/images/logo.svg
Normal file
|
@ -0,0 +1,83 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
|
||||
<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"
|
||||
version="1.1"
|
||||
id="Laag_1"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 99.999998 21.578381"
|
||||
enable-background="new 0 0 841.9 595.3"
|
||||
xml:space="preserve"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="logo.svg"
|
||||
width="100"
|
||||
height="21.578381"><metadata
|
||||
id="metadata4238"><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><defs
|
||||
id="defs4236" /><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1869"
|
||||
inkscape:window-height="1167"
|
||||
id="namedview4234"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:zoom="6.252524"
|
||||
inkscape:cx="34.820531"
|
||||
inkscape:cy="13.055339"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="Laag_1" /><g
|
||||
id="g4208"
|
||||
transform="matrix(0.13444474,0,0,0.13444474,-7.6499057,-23.433718)"><polygon
|
||||
points="740.6,329.7 780.5,329.7 800.7,309.5 800.7,269.7 760.9,269.7 740.6,289.9 "
|
||||
id="polygon4210"
|
||||
style="fill:#20a6db" /><g
|
||||
id="g4212"><path
|
||||
d="m 56.9,253.7 c 0,44.3 28.1,76.1 74.4,76.1 l 70.3,0 0,-39.8 -70.3,0 c -23.4,-0.1 -34.9,-16.6 -34.9,-36.3 0,-19.7 11.5,-35.9 34.9,-36.1 l 70.3,0 0,-39.7 -70.3,0 c -46.4,-0.1 -74.4,31.4 -74.4,75.8 z"
|
||||
id="path4214"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#1a171b" /><path
|
||||
d="m 351.3,260.5 c 0,23.4 -16.5,35.9 -36.2,35.9 -19.7,0 -35.9,-12.5 -35.9,-35.9 l 0,-82.7 -39.9,0 0,82.7 c 0,46.3 31.5,74.3 75.8,74.3 44.3,0 76.1,-28.1 76.1,-74.3 l 0,-82.7 -39.9,0 0,82.7 z"
|
||||
id="path4216"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#1a171b" /><path
|
||||
d="m 625.1,177.8 c -46.3,0 -74.4,31.5 -74.4,75.8 0,44.3 28.1,76.1 74.4,76.1 l 16.4,0 0,-39.7 -16.4,0 c -23.4,-0.1 -34.9,-16.6 -34.9,-36.3 0,-19.7 11.5,-35.9 34.9,-36.1 l 37.3,0 0,52 0,20.4 0,39.8 39.9,0 0,-2.3 0,-37.5 0,-72.4 0,-32.8 0,-7 -77.2,0 z"
|
||||
id="path4218"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#1a171b" /><path
|
||||
d="m 429,250.1 0,79.6 39.4,0 0,-79.6 c 0,-19.7 11.5,-35.9 34.9,-36.1 l 28.8,0 0,-39.7 -28.8,0 c -46.3,0 -74.3,31.5 -74.3,75.8 z"
|
||||
id="path4220"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#1a171b" /></g></g><g
|
||||
id="g4222"
|
||||
transform="translate(1.94e-7,-573.72161)" /><g
|
||||
id="g4224"
|
||||
transform="translate(1.94e-7,-573.72161)" /><g
|
||||
id="g4226"
|
||||
transform="translate(1.94e-7,-573.72161)" /><g
|
||||
id="g4228"
|
||||
transform="translate(1.94e-7,-573.72161)" /><g
|
||||
id="g4230"
|
||||
transform="translate(1.94e-7,-573.72161)" /><g
|
||||
id="g4232"
|
||||
transform="translate(1.94e-7,-573.72161)" /></svg>
|
After Width: | Height: | Size: 3.5 KiB |
243
resources/themes/cura/styles.qml
Normal file
|
@ -0,0 +1,243 @@
|
|||
import QtQuick 2.1
|
||||
import QtQuick.Controls 1.1
|
||||
import QtQuick.Controls.Styles 1.1
|
||||
|
||||
import UM 1.0 as UM
|
||||
|
||||
QtObject {
|
||||
property Component sidebar_header_button: Component {
|
||||
ButtonStyle {
|
||||
background: Item {
|
||||
Label {
|
||||
anchors.right: parent.right;
|
||||
anchors.top: parent.top;
|
||||
|
||||
text: "▼";
|
||||
|
||||
property bool down: control.pressed || (control.checkable && control.checked);
|
||||
color: down ? UM.Theme.colors.text_pressed : control.hovered ? UM.Theme.colors.text_hover : UM.Theme.colors.text;
|
||||
}
|
||||
}
|
||||
|
||||
label: Label {
|
||||
property bool down: control.pressed || (control.checkable && control.checked);
|
||||
|
||||
font: UM.Theme.fonts.sidebar_header;
|
||||
color: down ? UM.Theme.colors.text_pressed : control.hovered ? UM.Theme.colors.text_hover : UM.Theme.colors.text;
|
||||
|
||||
text: control.text;
|
||||
|
||||
elide: Text.ElideRight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property Component tool_button: Component {
|
||||
ButtonStyle {
|
||||
background: UM.AngledCornerRectangle {
|
||||
property bool down: control.pressed || (control.checkable && control.checked);
|
||||
|
||||
implicitWidth: UM.Theme.sizes.button.width;
|
||||
implicitHeight: UM.Theme.sizes.button.height;
|
||||
color: {
|
||||
if(!control.enabled) {
|
||||
return UM.Theme.colors.button_disabled;
|
||||
} else if(control.checkable && control.checked && control.hovered) {
|
||||
return UM.Theme.colors.button_active_hover;
|
||||
} else if(control.pressed || (control.checkable && control.checked)) {
|
||||
return UM.Theme.colors.button_active;
|
||||
} else if(control.hovered) {
|
||||
return UM.Theme.colors.button_hover;
|
||||
} else {
|
||||
return UM.Theme.colors.button;
|
||||
}
|
||||
}
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||
|
||||
Rectangle {
|
||||
anchors.bottom: parent.top;
|
||||
|
||||
width: parent.width;
|
||||
height: control.hovered ? label.height : 0;
|
||||
Behavior on height { NumberAnimation { duration: 75; } }
|
||||
|
||||
opacity: control.hovered ? 1.0 : 0.0;
|
||||
Behavior on opacity { NumberAnimation { duration: 75; } }
|
||||
|
||||
Label {
|
||||
id: label
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
text: control.text;
|
||||
font: UM.Theme.fonts.button_tooltip;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
label: Item {
|
||||
Image {
|
||||
anchors.centerIn: parent;
|
||||
|
||||
source: control.iconSource;
|
||||
width: UM.Theme.sizes.button_icon.width;
|
||||
height: UM.Theme.sizes.button_icon.height;
|
||||
|
||||
sourceSize: UM.Theme.sizes.button_icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property Component sidebar_category: Component {
|
||||
ButtonStyle {
|
||||
background: UM.AngledCornerRectangle {
|
||||
implicitHeight: UM.Theme.sizes.section.height;
|
||||
color: {
|
||||
if(control.color) {
|
||||
return control.color;
|
||||
} else if(!control.enabled) {
|
||||
return UM.Theme.colors.setting_category_disabled;
|
||||
} else if(control.hovered && control.checkable && control.checked) {
|
||||
return UM.Theme.colors.setting_category_active_hover;
|
||||
} else if(control.pressed || (control.checkable && control.checked)) {
|
||||
return UM.Theme.colors.setting_category_active;
|
||||
} else if(control.hovered) {
|
||||
return UM.Theme.colors.setting_category_hover;
|
||||
} else {
|
||||
return UM.Theme.colors.setting_category;
|
||||
}
|
||||
}
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
cornerSize: UM.Theme.sizes.default_margin.width;
|
||||
}
|
||||
label: Row {
|
||||
anchors.fill: parent;
|
||||
anchors.margins: UM.Theme.sizes.default_margin.width;
|
||||
spacing: UM.Theme.sizes.default_margin.width;
|
||||
|
||||
Image {
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
source: control.iconSource;
|
||||
}
|
||||
|
||||
Label {
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
text: control.text;
|
||||
font: UM.Theme.fonts.setting_category;
|
||||
color: UM.Theme.colors.setting_category_text;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property Component scrollview: Component {
|
||||
ScrollViewStyle {
|
||||
decrementControl: Item { }
|
||||
incrementControl: Item { }
|
||||
|
||||
transientScrollBars: false
|
||||
|
||||
scrollBarBackground: UM.AngledCornerRectangle {
|
||||
implicitWidth: UM.Theme.sizes.scrollbar.width;
|
||||
|
||||
cornerSize: UM.Theme.sizes.scrollbar.width;
|
||||
|
||||
color: UM.Theme.colors.scrollbar_background;
|
||||
}
|
||||
|
||||
handle: UM.AngledCornerRectangle {
|
||||
implicitWidth: UM.Theme.sizes.scrollbar.width;
|
||||
|
||||
cornerSize: UM.Theme.sizes.scrollbar.width;
|
||||
|
||||
color: styleData.pressed ? UM.Theme.colors.scrollbar_handle_down : styleData.hovered ? UM.Theme.colors.scrollbar_handle_hover : UM.Theme.colors.scrollbar_handle;
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property variant setting_item: UM.SettingItemStyle {
|
||||
labelFont: UM.Theme.fonts.default;
|
||||
labelColor: UM.Theme.colors.setting_label;
|
||||
|
||||
spacing: UM.Theme.sizes.default_margin.width;
|
||||
fixedHeight: UM.Theme.sizes.setting.height;
|
||||
|
||||
controlWidth: UM.Theme.sizes.setting_control.width;
|
||||
controlRightMargin: UM.Theme.sizes.setting_control_margin.width;
|
||||
controlBorderWidth: 1;
|
||||
controlColor: UM.Theme.colors.setting_control;
|
||||
controlHighlightColor: UM.Theme.colors.setting_control_highlight;
|
||||
controlBorderColor: UM.Theme.colors.setting_control_border;
|
||||
controlTextColor: UM.Theme.colors.setting_control_text;
|
||||
controlFont: UM.Theme.fonts.default;
|
||||
|
||||
validationErrorColor: UM.Theme.colors.setting_validation_error;
|
||||
validationWarningColor: UM.Theme.colors.setting_validation_warning;
|
||||
validationOkColor: UM.Theme.colors.setting_validation_ok;
|
||||
|
||||
unitRightMargin: UM.Theme.sizes.setting_unit_margin.width;
|
||||
unitColor: UM.Theme.colors.setting_unit;
|
||||
unitFont: UM.Theme.fonts.default;
|
||||
}
|
||||
|
||||
property Component checkbox: Component {
|
||||
CheckBoxStyle {
|
||||
background: Item { }
|
||||
indicator: Rectangle {
|
||||
implicitWidth: UM.Theme.sizes.checkbox.width;
|
||||
implicitHeight: UM.Theme.sizes.checkbox.height;
|
||||
|
||||
color: control.hovered ? UM.Theme.colors.checkbox_hover : UM.Theme.colors.checkbox;
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
|
||||
border.width: 1
|
||||
border.color: UM.Theme.colors.checkbox_border;
|
||||
|
||||
Label {
|
||||
anchors.centerIn: parent;
|
||||
color: UM.Theme.colors.checkbox_mark;
|
||||
|
||||
text: "✓";
|
||||
|
||||
opacity: control.checked ? 1 : 0;
|
||||
Behavior on opacity { NumberAnimation { duration: 100; } }
|
||||
}
|
||||
}
|
||||
label: Label {
|
||||
text: control.text;
|
||||
color: UM.Theme.colors.checkbox_text;
|
||||
font: UM.Theme.fonts.default;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
property Component slider: Component {
|
||||
SliderStyle {
|
||||
groove: Rectangle {
|
||||
implicitWidth: control.width;
|
||||
implicitHeight: UM.Theme.sizes.slider_groove.height;
|
||||
|
||||
color: UM.Theme.colors.slider_groove;
|
||||
border.width: 1;
|
||||
border.color: UM.Theme.colors.slider_groove_border;
|
||||
|
||||
Rectangle {
|
||||
anchors {
|
||||
left: parent.left;
|
||||
top: parent.top;
|
||||
bottom: parent.bottom;
|
||||
}
|
||||
color: UM.Theme.colors.slider_groove_fill;
|
||||
width: (control.value / (control.maximumValue - control.minimumValue)) * parent.width;
|
||||
}
|
||||
}
|
||||
handle: Rectangle {
|
||||
width: UM.Theme.sizes.slider_handle.width;
|
||||
height: UM.Theme.sizes.slider_handle.height;
|
||||
color: control.hovered ? UM.Theme.colors.slider_handle_hover : UM.Theme.colors.slider_handle;
|
||||
Behavior on color { ColorAnimation { duration: 50; } }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
149
resources/themes/cura/theme.json
Normal file
|
@ -0,0 +1,149 @@
|
|||
{
|
||||
"fonts": {
|
||||
"large": {
|
||||
"size": 1.5,
|
||||
"bold": true,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"default": {
|
||||
"size": 1,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"default_allcaps": {
|
||||
"size": 1,
|
||||
"capitalize": true,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"small": {
|
||||
"size": 0.75,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"tiny": {
|
||||
"size": 0.5,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"sidebar_header": {
|
||||
"size": 0.75,
|
||||
"capitalize": true,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"timeslider_time": {
|
||||
"size": 1.0,
|
||||
"bold": true,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"button_tooltip": {
|
||||
"size": 0.75,
|
||||
"capitalize": true,
|
||||
"family": "Roboto"
|
||||
},
|
||||
"setting_category": {
|
||||
"size": 1.5,
|
||||
"family": "Roboto"
|
||||
}
|
||||
},
|
||||
|
||||
"colors": {
|
||||
"primary": [12, 169, 227, 255],
|
||||
"primary_hover": [34, 150, 190, 255],
|
||||
"primary_text": [255, 255, 255, 255],
|
||||
"border": [205, 202, 201, 255],
|
||||
"secondary": [205, 202, 201, 255],
|
||||
|
||||
"text": [174, 174, 174, 255],
|
||||
"text_inactive": [205, 202, 201, 255],
|
||||
"text_hover": [35, 35, 35, 255],
|
||||
"text_pressed": [12, 169, 227, 255],
|
||||
|
||||
"button": [205, 202, 201, 255],
|
||||
"button_hover": [174, 174, 174, 255],
|
||||
"button_active": [12, 169, 227, 255],
|
||||
"button_active_hover": [34, 150, 190, 255],
|
||||
"button_text": [255, 255, 255, 255],
|
||||
"button_disabled": [245, 245, 245, 255],
|
||||
|
||||
"scrollbar_background": [245, 245, 245, 255],
|
||||
"scrollbar_handle": [205, 202, 201, 255],
|
||||
"scrollbar_handle_hover": [174, 174, 174, 255],
|
||||
"scrollbar_handle_down": [12, 159, 227, 255],
|
||||
|
||||
"setting_category": [205, 202, 201, 255],
|
||||
"setting_category_disabled": [245, 245, 245, 255],
|
||||
"setting_category_hover": [174, 174, 174, 255],
|
||||
"setting_category_active": [12, 169, 227, 255],
|
||||
"setting_category_active_hover": [34, 150, 190, 255],
|
||||
"setting_category_text": [255, 255, 255, 255],
|
||||
|
||||
"setting_label": [174, 174, 174, 255],
|
||||
"setting_control": [255, 255, 255, 255],
|
||||
"setting_control_highlight": [245, 245, 245, 255],
|
||||
"setting_control_border": [174, 174, 174, 255],
|
||||
"setting_control_text": [35, 35, 35, 255],
|
||||
"setting_control_hover": [35, 35, 35, 255],
|
||||
"setting_unit": [174, 174, 174, 255],
|
||||
"setting_validation_error": [255, 57, 14, 255],
|
||||
"setting_validation_warning": [255, 186, 15, 255],
|
||||
"setting_validation_ok": [255, 255, 255, 255],
|
||||
|
||||
"slider_groove": [245, 245, 245, 255],
|
||||
"slider_groove_border": [205, 202, 201, 255],
|
||||
"slider_groove_fill": [205, 202, 201, 255],
|
||||
"slider_handle": [12, 169, 227, 255],
|
||||
"slider_handle_hover": [34, 150, 190, 255],
|
||||
|
||||
"checkbox": [255, 255, 255, 255],
|
||||
"checkbox_hover": [245, 245, 245, 255],
|
||||
"checkbox_border": [174, 174, 174, 255],
|
||||
"checkbox_mark": [35, 35, 35, 255],
|
||||
"checkbox_text": [174, 174, 174, 255],
|
||||
|
||||
"tooltip": [255, 225, 146, 255],
|
||||
|
||||
"save_button": [255, 255, 255, 255],
|
||||
"save_button_border": [205, 202, 201, 255],
|
||||
"save_button_inactive": [205, 202, 201, 255],
|
||||
"save_button_active": [12, 159, 227, 255],
|
||||
"save_button_active_hover": [34, 150, 190, 255],
|
||||
"save_button_text": [35, 35, 35, 255],
|
||||
|
||||
"message": [205, 202, 201, 255],
|
||||
"message_text": [35, 35, 35, 255]
|
||||
},
|
||||
|
||||
"sizes": {
|
||||
"window_margin": [2.0, 2.0],
|
||||
"default_margin": [1.0, 1.0],
|
||||
"panel": [22.0, 10.0],
|
||||
"logo": [9.5, 2.0],
|
||||
"toolbar_button": [2.0, 2.0],
|
||||
"toolbar_spacing": [1.0, 1.0],
|
||||
|
||||
"section": [22.0, 3.0],
|
||||
"section_icon": [2.14, 2.14],
|
||||
"section_text_margin": [0.33, 0.33],
|
||||
|
||||
"setting": [21.0, 2.0],
|
||||
"setting_control": [6.0, 2.0],
|
||||
"setting_control_margin": [3.0, 3.0],
|
||||
"setting_unit_margin": [0.5, 0.5],
|
||||
|
||||
"button": [4.25, 4.25],
|
||||
"button_icon": [3.57, 3.57],
|
||||
|
||||
"scrollbar": [0.5, 0.5],
|
||||
|
||||
"slider_groove": [0.5, 0.5],
|
||||
"slider_handle": [1.5, 1.5],
|
||||
|
||||
"checkbox": [1.5, 1.5],
|
||||
|
||||
"tooltip": [20.0, 10.0],
|
||||
"tooltip_margins": [1.0, 1.0],
|
||||
|
||||
"save_button_border": [0.06, 0.06],
|
||||
"save_button_label_margin": [0.5, 0.5],
|
||||
|
||||
"message": [30.0, 5.0],
|
||||
"message_close": [1.25, 1.25]
|
||||
}
|
||||
}
|