aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2018-11-18 21:16:04 +0100
committerDiederick de Vries <diederick@diederickdevries.net>2018-11-18 21:16:04 +0100
commita1bad564eac1e1633297704f570f073184419fc5 (patch)
treebb029e758f14b1eba93afaab089d9e5091e30651
downloadarchlinux-dark-a1bad564eac1e1633297704f570f073184419fc5.tar.gz
archlinux-dark-a1bad564eac1e1633297704f570f073184419fc5.tar.bz2
archlinux-dark-a1bad564eac1e1633297704f570f073184419fc5.zip
Initial commit
-rw-r--r--AUTHORS11
-rw-r--r--COPYING380
-rw-r--r--Main.qml265
-rw-r--r--Main.qmlcbin0 -> 28956 bytes
-rw-r--r--TRADEMARKS3
-rw-r--r--angle-down.pngbin0 -> 196 bytes
-rw-r--r--background.pngbin0 -> 9060 bytes
-rw-r--r--darkarch.pngbin0 -> 837693 bytes
-rw-r--r--metadata.desktop13
-rw-r--r--screenshot.pngbin0 -> 33340 bytes
-rw-r--r--theme.conf2
11 files changed, 674 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..92b7be4
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,11 @@
1AUTHOR(S)
2
3Based on the original work by:
4Thayer Williams
5thayerw@gmail.com
6Guidobelix
7guidobelix@hotmail.it
8
9Adjusted for use with dark WM themes by:
10Diederick de Vries
11diederick@diederickdevries.net
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..2c7e868
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,380 @@
1
2Creative Commons Legal Code - Attribution-ShareAlike 3.0
3
4License
5
6THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
7COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
8COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
9AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
10
11BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
12TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
13BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
14CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
15CONDITIONS.
16
171. Definitions
18
19 1. "Adaptation" means a work based upon the Work, or upon the Work
20 and other pre-existing works, such as a translation, adaptation,
21 derivative work, arrangement of music or other alterations of a
22 literary or artistic work, or phonogram or performance and includes
23 cinematographic adaptations or any other form in which the Work may
24 be recast, transformed, or adapted including in any form recognizably
25 derived from the original, except that a work that constitutes a
26 Collection will not be considered an Adaptation for the purpose of
27 this License. For the avoidance of doubt, where the Work is a musical
28 work, performance or phonogram, the synchronization of the Work in
29 timed-relation with a moving image ("synching") will be considered an
30 Adaptation for the purpose of this License.
31
32 2. "Collection" means a collection of literary or artistic works,
33 such as encyclopedias and anthologies, or performances, phonograms or
34 broadcasts, or other works or subject matter other than works listed
35 in Section 1(f) below, which, by reason of the selection and
36 arrangement of their contents, constitute intellectual creations, in
37 which the Work is included in its entirety in unmodified form along
38 with one or more other contributions, each constituting separate and
39 independent works in themselves, which together are assembled into a
40 collective whole. A work that constitutes a Collection will not be
41 considered an Adaptation (as defined below) for the purposes of this
42 License.
43
44 3. "Creative Commons Compatible License" means a license that is
45 listed at http://creativecommons.org/compatiblelicenses that has been
46 approved by Creative Commons as being essentially equivalent to this
47 License, including, at a minimum, because that license: (i) contains
48 terms that have the same purpose, meaning and effect as the License
49 Elements of this License; and, (ii) explicitly permits the
50 relicensing of adaptations of works made available under that license
51 under this License or a Creative Commons jurisdiction license with
52 the same License Elements as this License.
53
54 4. "Distribute" means to make available to the public the original
55 and copies of the Work or Adaptation, as appropriate, through sale or
56 other transfer of ownership.
57
58 5. "License Elements" means the following high-level license
59 attributes as selected by Licensor and indicated in the title of this
60 License: Attribution, ShareAlike.
61
62 6. "Licensor" means the individual, individuals, entity or entities
63 that offer(s) the Work under the terms of this License.
64
65 7. "Original Author" means, in the case of a literary or artistic
66 work, the individual, individuals, entity or entities who created the
67 Work or if no individual or entity can be identified, the publisher;
68 and in addition (i) in the case of a performance the actors, singers,
69 musicians, dancers, and other persons who act, sing, deliver,
70 declaim, play in, interpret or otherwise perform literary or artistic
71 works or expressions of folklore; (ii) in the case of a phonogram the
72 producer being the person or legal entity who first fixes the sounds
73 of a performance or other sounds; and, (iii) in the case of
74 broadcasts, the organization that transmits the broadcast.
75
76 8. "Work" means the literary and/or artistic work offered under the
77 terms of this License including without limitation any production in
78 the literary, scientific and artistic domain, whatever may be the
79 mode or form of its expression including digital form, such as a
80 book, pamphlet and other writing; a lecture, address, sermon or other
81 work of the same nature; a dramatic or dramatico-musical work; a
82 choreographic work or entertainment in dumb show; a musical
83 composition with or without words; a cinematographic work to which
84 are assimilated works expressed by a process analogous to
85 cinematography; a work of drawing, painting, architecture, sculpture,
86 engraving or lithography; a photographic work to which are
87 assimilated works expressed by a process analogous to photography; a
88 work of applied art; an illustration, map, plan, sketch or
89 three-dimensional work relative to geography, topography,
90 architecture or science; a performance; a broadcast; a phonogram; a
91 compilation of data to the extent it is protected as a copyrightable
92 work; or a work performed by a variety or circus performer to the
93 extent it is not otherwise considered a literary or artistic work.
94
95 9. "You" means an individual or entity exercising rights under this
96 License who has not previously violated the terms of this License
97 with respect to the Work, or who has received express permission from
98 the Licensor to exercise rights under this License despite a previous
99 violation.
100
101 10. "Publicly Perform" means to perform public recitations of the
102 Work and to communicate to the public those public recitations, by
103 any means or process, including by wire or wireless means or public
104 digital performances; to make available to the public Works in such a
105 way that members of the public may access these Works from a place
106 and at a place individually chosen by them; to perform the Work to
107 the public by any means or process and the communication to the
108 public of the performances of the Work, including by public digital
109 performance; to broadcast and rebroadcast the Work by any means
110 including signs, sounds or images.
111
112 11. "Reproduce" means to make copies of the Work by any means
113 including without limitation by sound or visual recordings and the
114 right of fixation and reproducing fixations of the Work, including
115 storage of a protected performance or phonogram in digital form or
116 other electronic medium.
117
1182. Fair Dealing Rights. Nothing in this License is intended to reduce,
119limit, or restrict any uses free from copyright or rights arising from
120limitations or exceptions that are provided for in connection with the
121copyright protection under copyright law or other applicable laws.
122
1233. License Grant. Subject to the terms and conditions of this License,
124Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
125perpetual (for the duration of the applicable copyright) license to
126exercise the rights in the Work as stated below:
127
128 1. to Reproduce the Work, to incorporate the Work into one or more
129 Collections, and to Reproduce the Work as incorporated in the
130 Collections;
131
132 2. to create and Reproduce Adaptations provided that any such
133 Adaptation, including any translation in any medium, takes reasonable
134 steps to clearly label, demarcate or otherwise identify that changes
135 were made to the original Work. For example, a translation could be
136 marked "The original work was translated from English to Spanish," or
137 a modification could indicate "The original work has been modified.";
138
139 3. to Distribute and Publicly Perform the Work including as
140 incorporated in Collections; and,
141
142 4. to Distribute and Publicly Perform Adaptations.
143
144 5. For the avoidance of doubt:
145
146 1. Non-waivable Compulsory License Schemes. In those
147 jurisdictions in which the right to collect royalties through
148 any statutory or compulsory licensing scheme cannot be waived,
149 the Licensor reserves the exclusive right to collect such
150 royalties for any exercise by You of the rights granted under
151 this License;
152
153 2. Waivable Compulsory License Schemes. In those jurisdictions
154 in which the right to collect royalties through any statutory
155 or compulsory licensing scheme can be waived, the Licensor
156 waives the exclusive right to collect such royalties for any
157 exercise by You of the rights granted under this License; and,
158
159 3. Voluntary License Schemes. The Licensor waives the right to
160 collect royalties, whether individually or, in the event that
161 the Licensor is a member of a collecting society that
162 administers voluntary licensing schemes, via that society, from
163 any exercise by You of the rights granted under this License.
164
165The above rights may be exercised in all media and formats whether now
166known or hereafter devised. The above rights include the right to make
167such modifications as are technically necessary to exercise the rights
168in other media and formats. Subject to Section 8(f), all rights not
169expressly granted by Licensor are hereby reserved.
170
1714. Restrictions. The license granted in Section 3 above is expressly
172made subject to and limited by the following restrictions:
173
174 1. You may Distribute or Publicly Perform the Work only under the
175 terms of this License. You must include a copy of, or the Uniform
176 Resource Identifier (URI) for, this License with every copy of the
177 Work You Distribute or Publicly Perform. You may not offer or impose
178 any terms on the Work that restrict the terms of this License or the
179 ability of the recipient of the Work to exercise the rights granted
180 to that recipient under the terms of the License. You may not
181 sublicense the Work. You must keep intact all notices that refer to
182 this License and to the disclaimer of warranties with every copy of
183 the Work You Distribute or Publicly Perform. When You Distribute or
184 Publicly Perform the Work, You may not impose any effective
185 technological measures on the Work that restrict the ability of a
186 recipient of the Work from You to exercise the rights granted to that
187 recipient under the terms of the License. This Section 4(a) applies
188 to the Work as incorporated in a Collection, but this does not
189 require the Collection apart from the Work itself to be made subject
190 to the terms of this License. If You create a Collection, upon notice
191 from any Licensor You must, to the extent practicable, remove from
192 the Collection any credit as required by Section 4(c), as requested.
193 If You create an Adaptation, upon notice from any Licensor You must,
194 to the extent practicable, remove from the Adaptation any credit as
195 required by Section 4(c), as requested.
196
197 2. You may Distribute or Publicly Perform an Adaptation only under
198 the terms of: (i) this License; (ii) a later version of this License
199 with the same License Elements as this License; (iii) a Creative
200 Commons jurisdiction license (either this or a later license version)
201 that contains the same License Elements as this License (e.g.,
202 Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible
203 License. If you license the Adaptation under one of the licenses
204 mentioned in (iv), you must comply with the terms of that license. If
205 you license the Adaptation under the terms of any of the licenses
206 mentioned in (i), (ii) or (iii) (the "Applicable License"), you must
207 comply with the terms of the Applicable License generally and the
208 following provisions: (I) You must include a copy of, or the URI for,
209 the Applicable License with every copy of each Adaptation You
210 Distribute or Publicly Perform; (II) You may not offer or impose any
211 terms on the Adaptation that restrict the terms of the Applicable
212 License or the ability of the recipient of the Adaptation to exercise
213 the rights granted to that recipient under the terms of the
214 Applicable License; (III) You must keep intact all notices that refer
215 to the Applicable License and to the disclaimer of warranties with
216 every copy of the Work as included in the Adaptation You Distribute
217 or Publicly Perform; (IV) when You Distribute or Publicly Perform the
218 Adaptation, You may not impose any effective technological measures
219 on the Adaptation that restrict the ability of a recipient of the
220 Adaptation from You to exercise the rights granted to that recipient
221 under the terms of the Applicable License. This Section 4(b) applies
222 to the Adaptation as incorporated in a Collection, but this does not
223 require the Collection apart from the Adaptation itself to be made
224 subject to the terms of the Applicable License.
225
226 3. If You Distribute, or Publicly Perform the Work or any Adaptations
227 or Collections, You must, unless a request has been made pursuant to
228 Section 4(a), keep intact all copyright notices for the Work and
229 provide, reasonable to the medium or means You are utilizing: (i) the
230 name of the Original Author (or pseudonym, if applicable) if
231 supplied, and/or if the Original Author and/or Licensor designate
232 another party or parties (e.g., a sponsor institute, publishing
233 entity, journal) for attribution ("Attribution Parties") in
234 Licensor's copyright notice, terms of service or by other reasonable
235 means, the name of such party or parties; (ii) the title of the Work
236 if supplied; (iii) to the extent reasonably practicable, the URI, if
237 any, that Licensor specifies to be associated with the Work, unless
238 such URI does not refer to the copyright notice or licensing
239 information for the Work; and (iv) , consistent with Ssection 3(b),
240 in the case of an Adaptation, a credit identifying the use of the
241 Work in the Adaptation (e.g., "French translation of the Work by
242 Original Author," or "Screenplay based on original Work by Original
243 Author"). The credit required by this Section 4(c) may be implemented
244 in any reasonable manner; provided, however, that in the case of a
245 Adaptation or Collection, at a minimum such credit will appear, if a
246 credit for all contributing authors of the Adaptation or Collection
247 appears, then as part of these credits and in a manner at least as
248 prominent as the credits for the other contributing authors. For the
249 avoidance of doubt, You may only use the credit required by this
250 Section for the purpose of attribution in the manner set out above
251 and, by exercising Your rights under this License, You may not
252 implicitly or explicitly assert or imply any connection with,
253 sponsorship or endorsement by the Original Author, Licensor and/or
254 Attribution Parties, as appropriate, of You or Your use of the Work,
255 without the separate, express prior written permission of the
256 Original Author, Licensor and/or Attribution Parties.
257
258 4. Except as otherwise agreed in writing by the Licensor or as may be
259 otherwise permitted by applicable law, if You Reproduce, Distribute
260 or Publicly Perform the Work either by itself or as part of any
261 Adaptations or Collections, You must not distort, mutilate, modify or
262 take other derogatory action in relation to the Work which would be
263 prejudicial to the Original Author's honor or reputation. Licensor
264 agrees that in those jurisdictions (e.g. Japan), in which any
265 exercise of the right granted in Section 3(b) of this License (the
266 right to make Adaptations) would be deemed to be a distortion,
267 mutilation, modification or other derogatory action prejudicial to
268 the Original Author's honor and reputation, the Licensor will waive
269 or not assert, as appropriate, this Section, to the fullest extent
270 permitted by the applicable national law, to enable You to reasonably
271 exercise Your right under Section 3(b) of this License (right to make
272 Adaptations) but not otherwise.
273
2745. Representations, Warranties and Disclaimer
275
276UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
277OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
278KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
279INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
280FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF
281LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
282WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE
283EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
284
2856. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE
286LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR
287ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
288ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
289BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
290
2917. Termination
292
293 1. This License and the rights granted hereunder will terminate
294 automatically upon any breach by You of the terms of this License.
295 Individuals or entities who have received Adaptations or Collections
296 from You under this License, however, will not have their licenses
297 terminated provided such individuals or entities remain in full
298 compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
299 survive any termination of this License.
300
301 2. Subject to the above terms and conditions, the license granted
302 here is perpetual (for the duration of the applicable copyright in
303 the Work). Notwithstanding the above, Licensor reserves the right to
304 release the Work under different license terms or to stop
305 distributing the Work at any time; provided, however that any such
306 election will not serve to withdraw this License (or any other
307 license that has been, or is required to be, granted under the terms
308 of this License), and this License will continue in full force and
309 effect unless terminated as stated above.
310
3118. Miscellaneous
312
313 1. Each time You Distribute or Publicly Perform the Work or a
314 Collection, the Licensor offers to the recipient a license to the
315 Work on the same terms and conditions as the license granted to You
316 under this License.
317
318 2. Each time You Distribute or Publicly Perform an Adaptation,
319 Licensor offers to the recipient a license to the original Work on
320 the same terms and conditions as the license granted to You under
321 this License.
322
323 3. If any provision of this License is invalid or unenforceable under
324 applicable law, it shall not affect the validity or enforceability of
325 the remainder of the terms of this License, and without further
326 action by the parties to this agreement, such provision shall be
327 reformed to the minimum extent necessary to make such provision valid
328 and enforceable.
329
330 4. No term or provision of this License shall be deemed waived and no
331 breach consented to unless such waiver or consent shall be in writing
332 and signed by the party to be charged with such waiver or consent.
333
334 5. This License constitutes the entire agreement between the parties
335 with respect to the Work licensed here. There are no understandings,
336 agreements or representations with respect to the Work not specified
337 here. Licensor shall not be bound by any additional provisions that
338 may appear in any communication from You. This License may not be
339 modified without the mutual written agreement of the Licensor and
340 You.
341
342 6. The rights granted under, and the subject matter referenced, in
343 this License were drafted utilizing the terminology of the Berne
344 Convention for the Protection of Literary and Artistic Works (as
345 amended on September 28, 1979), the Rome Convention of 1961, the WIPO
346 Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty
347 of 1996 and the Universal Copyright Convention (as revised on July
348 24, 1971). These rights and subject matter take effect in the
349 relevant jurisdiction in which the License terms are sought to be
350 enforced according to the corresponding provisions of the
351 implementation of those treaty provisions in the applicable national
352 law. If the standard suite of rights granted under applicable
353 copyright law includes additional rights not granted under this
354 License, such additional rights are deemed to be included in the
355 License; this License is not intended to restrict the license of any
356 rights under applicable law.
357
358 Creative Commons Notice
359
360 Creative Commons is not a party to this License, and makes no
361 warranty whatsoever in connection with the Work. Creative Commons
362 will not be liable to You or any party on any legal theory for any
363 damages whatsoever, including without limitation any general,
364 special, incidental or consequential damages arising in connection
365 to this license. Notwithstanding the foregoing two (2) sentences, if
366 Creative Commons has expressly identified itself as the Licensor
367 hereunder, it shall have all rights and obligations of Licensor.
368
369 Except for the limited purpose of indicating to the public that the
370 Work is licensed under the CCPL, Creative Commons does not authorize
371 the use by either party of the trademark "Creative Commons" or any
372 related trademark or logo of Creative Commons without the prior
373 written consent of Creative Commons. Any permitted use will be in
374 compliance with Creative Commons' then-current trademark usage
375 guidelines, as may be published on its website or otherwise made
376 available upon request from time to time. For the avoidance of
377 doubt, this trademark restriction does not form part of the License.
378
379 Creative Commons may be contacted at http://creativecommons.org/.
380
diff --git a/Main.qml b/Main.qml
new file mode 100644
index 0000000..772bb5e
--- /dev/null
+++ b/Main.qml
@@ -0,0 +1,265 @@
1/***********************************************************************/
2
3
4import QtQuick 2.0
5
6import SddmComponents 2.0
7
8
9Rectangle {
10 width: 640
11 height: 480
12
13 TextConstants { id: textConstants }
14
15 Connections {
16 target: sddm
17
18 onLoginSucceeded: {
19 errorMessage.color = "steelblue"
20 errorMessage.text = textConstants.loginSucceeded
21 }
22
23 onLoginFailed: {
24 errorMessage.color = "red"
25 errorMessage.text = textConstants.loginFailed
26 }
27 }
28
29 Repeater {
30 model: screenModel
31 Background {
32 x: geometry.x; y: geometry.y; width: geometry.width; height:geometry.height
33 source: config.background
34 fillMode: Image.Tile
35 onStatusChanged: {
36 if (status == Image.Error && source !== config.defaultBackground) {
37 source = config.defaultBackground
38 }
39 }
40 }
41 }
42
43 Rectangle {
44 property variant geometry: screenModel.geometry(screenModel.primary)
45 x: geometry.x; y: geometry.y; width: geometry.width; height: geometry.height
46 color: "transparent"
47 transformOrigin: Item.Top
48
49 Rectangle {
50 id: archlinux
51 anchors.centerIn: parent
52 height: parent.height / 10 * 3
53 width: height * 1.8
54 anchors.verticalCenterOffset: height / 7
55 color: "transparent"
56
57 Column {
58 id: mainColumn
59 anchors.centerIn: parent
60 width: parent.width * 0.9
61 spacing: archlinux.height / 22.5
62
63 Row {
64 width: parent.width
65 spacing: 15
66 Text {
67 id: lblName
68 width: parent.width * 0.20; height: archlinux.height / 9
69 color: "white"
70 text: textConstants.userName
71 verticalAlignment: Text.AlignVCenter
72 font.bold: true
73 font.pixelSize: 12
74 }
75
76 TextBox {
77 id: name
78 width: parent.width * 0.8; height: archlinux.height / 9
79 text: userModel.lastUser
80 borderColor: "#111111"
81 textColor: "#808080"
82 color: "transparent"
83 font.pixelSize: 12
84
85 KeyNavigation.backtab: rebootButton; KeyNavigation.tab: password
86
87 Keys.onPressed: {
88 if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
89 sddm.login(name.text, password.text, session.index)
90 event.accepted = true
91 }
92 }
93 }
94 }
95
96 Row {
97 width: parent.width
98 spacing : 15
99 Text {
100 id: lblPassword
101 width: parent.width * 0.2; height: archlinux.height / 9
102 color: "white"
103 text: textConstants.password
104 verticalAlignment: Text.AlignVCenter
105 font.bold: true
106 font.pixelSize: 12
107 }
108
109 PasswordBox {
110 id: password
111 width: parent.width * 0.8; height: archlinux.height / 9
112 font.pixelSize: 12
113 tooltipBG: "lightgrey"
114 color: "transparent"
115 textColor: "grey"
116 borderColor: "#111111"
117 focus: true
118 Timer {
119 interval: 200
120 running: true
121 onTriggered: password.forceActiveFocus()
122 }
123
124 KeyNavigation.backtab: name; KeyNavigation.tab: session
125
126 Keys.onPressed: {
127 if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
128 sddm.login(name.text, password.text, session.index)
129 event.accepted = true
130 }
131 }
132 }
133 }
134
135 Row {
136 spacing: Math.round(archlinux.height / 70)
137 width: parent.width / 2
138 z: 100
139
140 Row {
141 z: 100
142 width: parent.width * 1.2
143 spacing : 15
144 anchors.bottom: parent.bottom
145
146 Text {
147 id: lblSession
148 width: parent.width / 3; height: archlinux.height / 9
149 text: textConstants.session
150 verticalAlignment: Text.AlignVCenter
151 color: "white"
152 wrapMode: TextEdit.WordWrap
153 font.bold: true
154 font.pixelSize: 12
155 }
156
157 ComboBox {
158 id: session
159 width: parent.width * 2 / 3; height: archlinux.height / 9
160
161 color: "transparent"
162 arrowColor: "grey"
163 menuColor: "#000000"
164 textColor: "grey"
165 borderColor: "#111111"
166
167 arrowIcon: "angle-down.png"
168
169 model: sessionModel
170 index: sessionModel.lastIndex
171
172 KeyNavigation.backtab: password; KeyNavigation.tab: layoutBox
173 }
174 }
175
176 Row {
177 z: 101
178 width: parent.width * 0.8
179 spacing : archlinux.height / 27
180 anchors.bottom: parent.bottom
181
182 Text {
183 id: lblLayout
184 width: parent.width / 3; height: archlinux.height / 9
185 text: textConstants.layout
186 verticalAlignment: Text.AlignVCenter
187 horizontalAlignment: Text.AlignHCenter
188 color: "transparent"
189 wrapMode: TextEdit.WordWrap
190 font.bold: true
191 font.pixelSize: 12
192 }
193
194 LayoutBox {
195 id: layoutBox
196 width: (parent.width * 2 / 3) -10; height: archlinux.height / 9
197 color: "transparent"
198 arrowColor: "grey"
199 menuColor: "#000000"
200 textColor: "grey"
201 borderColor: "#111111"
202
203 arrowIcon: "angle-down.png"
204
205 KeyNavigation.backtab: session; KeyNavigation.tab: loginButton
206 }
207 }
208 }
209
210 Row {
211 spacing: Math.round(archlinux.height / 70)
212 anchors.horizontalCenter: parent.horizontalCenter
213 property int btnWidth: Math.max(loginButton.implicitWidth,
214 shutdownButton.implicitWidth,
215 rebootButton.implicitWidth, archlinux.height / 3) + 8
216 Button {
217 id: loginButton
218 text: textConstants.login
219 width: parent.btnWidth
220 height: archlinux.height / 9
221 font.pixelSize: 12
222 color: "transparent"
223
224 onClicked: sddm.login(name.text, password.text, session.index)
225
226 KeyNavigation.backtab: layoutBox; KeyNavigation.tab: shutdownButton
227 }
228
229 Button {
230 id: shutdownButton
231 text: textConstants.shutdown
232 width: parent.btnWidth
233 height: archlinux.height / 9
234 font.pixelSize: 12
235 color: "transparent"
236
237 onClicked: sddm.powerOff()
238
239 KeyNavigation.backtab: loginButton; KeyNavigation.tab: rebootButton
240 }
241
242 Button {
243 id: rebootButton
244 text: textConstants.reboot
245 width: parent.btnWidth
246 height: archlinux.height / 9
247 font.pixelSize: 12
248 color: "transparent"
249
250 onClicked: sddm.reboot()
251
252 KeyNavigation.backtab: shutdownButton; KeyNavigation.tab: name
253 }
254 }
255 }
256 }
257 }
258
259 Component.onCompleted: {
260 if (name.text == "")
261 name.focus = true
262 else
263 password.focus = true
264 }
265}
diff --git a/Main.qmlc b/Main.qmlc
new file mode 100644
index 0000000..c929da1
--- /dev/null
+++ b/Main.qmlc
Binary files differ
diff --git a/TRADEMARKS b/TRADEMARKS
new file mode 100644
index 0000000..54a7981
--- /dev/null
+++ b/TRADEMARKS
@@ -0,0 +1,3 @@
1The ARCHLINUX name and logo are recognized trademarks.
2See http://www.archlinux.org/ for acceptable use and restrictions.
3
diff --git a/angle-down.png b/angle-down.png
new file mode 100644
index 0000000..4e9aeb0
--- /dev/null
+++ b/angle-down.png
Binary files differ
diff --git a/background.png b/background.png
new file mode 100644
index 0000000..6240e92
--- /dev/null
+++ b/background.png
Binary files differ
diff --git a/darkarch.png b/darkarch.png
new file mode 100644
index 0000000..4f27fc1
--- /dev/null
+++ b/darkarch.png
Binary files differ
diff --git a/metadata.desktop b/metadata.desktop
new file mode 100644
index 0000000..88e7399
--- /dev/null
+++ b/metadata.desktop
@@ -0,0 +1,13 @@
1[SddmGreeterTheme]
2Name=Arch Linux Dark
3Description=A dark SDDM theme for Arch Linux.
4Screenshot=screenshot.png
5License=CC-BY-SA
6Type=sddm-theme
7Version=1.0
8Screenshot=screenshot.png
9MainScript=Main.qml
10ConfigFile=theme.conf
11TranslationsDirectory=translations
12Theme-Id=archlinux-dark
13Theme-API=2.0
diff --git a/screenshot.png b/screenshot.png
new file mode 100644
index 0000000..323f8a1
--- /dev/null
+++ b/screenshot.png
Binary files differ
diff --git a/theme.conf b/theme.conf
new file mode 100644
index 0000000..eef120d
--- /dev/null
+++ b/theme.conf
@@ -0,0 +1,2 @@
1[General]
2background=darkarch.png