Skip to content

Commit 63d3a51

Browse files
committed
some fine-tuning on UI, background, text etc
Signed-off-by: ekkes-corner <ekke@ekkes-corner.org>
1 parent 6f84515 commit 63d3a51

File tree

5 files changed

+42
-29
lines changed

5 files changed

+42
-29
lines changed

assets/images/bg.png

26.6 KB
Loading

assets/images/bg.png.amd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#RimCascadesAssetMetaData version=1.0
2+
source: "bg.png"
3+
sliceMargins: 35 15 15 15

assets/main.qml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,15 @@ Page {
141141
}
142142
}
143143
]
144-
titleBar: TitleBar {
145-
id: titleBarId
146-
title: qsTr("Invoke ODS as APP vs Card") + Retranslate.onLanguageChanged
147-
visibility: ChromeVisibility.Visible
148-
}
149144
Container {
145+
background: back.imagePaint
146+
attachedObjects: [
147+
ImagePaintDefinition {
148+
id: back
149+
repeatPattern: RepeatPattern.Fill
150+
imageSource: "asset:///images/bg.png.amd"
151+
}
152+
]
150153
layout: DockLayout {
151154
}
152155
ImageView {
@@ -167,30 +170,43 @@ Page {
167170
translationX: 10
168171
translationY: 10
169172
}
173+
TextArea {
174+
id: titletext
175+
editable: false
176+
text: "File 2 ODS Cloud"
177+
textStyle.color: Color.White
178+
textStyle.base: SystemDefaults.TextStyles.BigText
179+
verticalAlignment: VerticalAlignment.Top
180+
horizontalAlignment: HorizontalAlignment.Left
181+
translationX: 60
182+
translationY: 20
183+
}
170184
TextArea {
171185
id: theNextStep
172186
editable: false
173187
text: ""
174-
textStyle.base: SystemDefaults.TextStyles.BodyText
188+
textStyle.color: Color.White
189+
textStyle.base: SystemDefaults.TextStyles.TitleText
175190
verticalAlignment: VerticalAlignment.Top
176191
horizontalAlignment: HorizontalAlignment.Left
177-
translationX: 80
178-
translationY: 40
192+
translationX: 60
193+
translationY: 120
179194
}
180195
TextArea {
181196
id: fileLabel
182197
editable: false
183198
visible: false
184199
text: ""
200+
textStyle.color: Color.White
185201
textStyle.base: SystemDefaults.TextStyles.BodyText
186202
verticalAlignment: VerticalAlignment.Top
187203
horizontalAlignment: HorizontalAlignment.Left
188-
translationX: 80
189-
translationY: 360
204+
translationX: 60
205+
translationY: 560
190206
}
191207
}
192208
function fileActions() {
193-
theNextStep.text = qsTr("You have selected the file below.\nEmbed the card from ODS:\nCloud Action (Previewer/Composer)\nor Share Action (Previewer)") + Retranslate.onLanguageChanged
209+
theNextStep.text = qsTr("You have selected the file below.\n\nEmbed the card from ODS:\n* Cloud Action\n(Previewer || Composer)\n* Share Action (Previewer)") + Retranslate.onLanguageChanged
194210
fileLabel.text = picker.selectedFile
195211
fileLabel.visible = true
196212
page.addAction(cloudActionPreviewer, 0)

translations/FileUpload2ODS.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,17 @@
5151
<translation type="unfinished"></translation>
5252
</message>
5353
<message>
54-
<location filename="../assets/main.qml" line="146"/>
55-
<source>Invoke ODS as APP vs Card</source>
56-
<translation type="unfinished"></translation>
57-
</message>
58-
<message>
59-
<location filename="../assets/main.qml" line="193"/>
54+
<location filename="../assets/main.qml" line="209"/>
6055
<source>You have selected the file below.
56+
6157
Embed the card from ODS:
62-
Cloud Action (Previewer/Composer)
63-
or Share Action (Previewer)</source>
58+
* Cloud Action
59+
(Previewer || Composer)
60+
* Share Action (Previewer)</source>
6461
<translation type="unfinished"></translation>
6562
</message>
6663
<message>
67-
<location filename="../assets/main.qml" line="211"/>
64+
<location filename="../assets/main.qml" line="227"/>
6865
<source>Select a file from Overflow Menu:
6966

7067
Document, Image,

translations/FileUpload2ODS_de.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,17 @@
5151
<translation type="unfinished"></translation>
5252
</message>
5353
<message>
54-
<location filename="../assets/main.qml" line="146"/>
55-
<source>Invoke ODS as APP vs Card</source>
56-
<translation type="unfinished"></translation>
57-
</message>
58-
<message>
59-
<location filename="../assets/main.qml" line="193"/>
54+
<location filename="../assets/main.qml" line="209"/>
6055
<source>You have selected the file below.
56+
6157
Embed the card from ODS:
62-
Cloud Action (Previewer/Composer)
63-
or Share Action (Previewer)</source>
58+
* Cloud Action
59+
(Previewer || Composer)
60+
* Share Action (Previewer)</source>
6461
<translation type="unfinished"></translation>
6562
</message>
6663
<message>
67-
<location filename="../assets/main.qml" line="211"/>
64+
<location filename="../assets/main.qml" line="227"/>
6865
<source>Select a file from Overflow Menu:
6966

7067
Document, Image,

0 commit comments

Comments
 (0)