Skip to content

Commit

Permalink
BB10.1 refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeHoarder committed Mar 25, 2013
1 parent 6339c52 commit 4ed63df
Show file tree
Hide file tree
Showing 247 changed files with 2,544 additions and 1,452 deletions.
7 changes: 4 additions & 3 deletions SensorDemo/assets/collisiondetector.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ import bb.multimedia 1.0
import QtMobility.sensors 1.2

Container {
bottomPadding: 20

//! [0]
attachedObjects: [
SystemSound {
Expand Down Expand Up @@ -74,8 +76,7 @@ Container {
text: qsTr("Reflectance: %1%").arg((irProximity.reflectance * 100).toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
color: Color.White
}
}

Expand All @@ -89,7 +90,7 @@ Container {
text: proximity.close ? qsTr("!! Mayday, Mayday !!") : qsTr("Cruising")
textStyle {
base: SystemDefaults.TextStyles.BigText
color: Color.Red
color: proximity.close ? Color.Red : Color.White
}

animations: [
Expand Down
3 changes: 1 addition & 2 deletions SensorDemo/assets/compass.qml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ Container {
text: qsTr("%1\u00B0").arg(compass.azimuth.toFixed())
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
color: Color.White
}
}
//! [1]
Expand Down
13 changes: 8 additions & 5 deletions SensorDemo/assets/flashlight.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import QtMobility.sensors 1.2
import Flashlight 1.0

Container {
topPadding: 20
leftPadding: 20
rightPadding: 20

//! [0]
attachedObjects: [
Flashlight {
Expand Down Expand Up @@ -148,9 +152,9 @@ Container {
}
}

Divider {}

Label {
topMargin: 50

text: qsTr("Gyro Threshold: %1").arg(gyroSlider.value.toFixed())
}

Expand All @@ -167,9 +171,8 @@ Container {

text: qsTr("Luminosity: %1 lux").arg(Math.round(light.val))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
base: SystemDefaults.TextStyles.TitleText
color: Color.White
lineHeight: 2
}
}
Expand Down
67 changes: 40 additions & 27 deletions SensorDemo/assets/metalfinder.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import QtMobility.sensors 1.2
import bb.vibrationController 1.0

Container {
leftPadding: 20
rightPadding: 20
bottomPadding: 20

//! [0]
attachedObjects: [
Magnetometer {
Expand Down Expand Up @@ -73,42 +77,51 @@ Container {
}
//! [1]

//! [2]
Label {
horizontalAlignment: HorizontalAlignment.Left
Container {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Bottom

text: qsTr("X: %1").arg((metalfinder.x * 1000000).toPrecision(5))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}
}
//! [2]

Label {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Bottom
//! [2]
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}

text: qsTr("Y: %1").arg((metalfinder.y * 1000000).toPrecision(5))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
text: qsTr("X: %1").arg((metalfinder.x * 1000000).toPrecision(5))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}
//! [2]

Label {
horizontalAlignment: HorizontalAlignment.Right
verticalAlignment: VerticalAlignment.Bottom
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}

text: qsTr("Z: %1").arg((metalfinder.z * 1000000).toPrecision(5))
text: qsTr("Y: %1").arg((metalfinder.y * 1000000).toPrecision(5))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}

textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}

text: qsTr("Z: %1").arg((metalfinder.z * 1000000).toPrecision(5))

textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}
}
71 changes: 42 additions & 29 deletions SensorDemo/assets/motionalarm.qml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import bb.multimedia 1.0
import QtMobility.sensors 1.2

Container {
leftPadding: 20
rightPadding: 20
bottomPadding: 20

//! [0]
attachedObjects: [
SystemSound {
Expand Down Expand Up @@ -71,50 +75,59 @@ Container {

text: alarm.movement ? qsTr("ALARM: Movement Detected!") : qsTr("No Movement Detected")
textStyle {
base: SystemDefaults.TextStyles.BigText
color: alarm.movement ? Color.Red : Color.Green
base: SystemDefaults.TextStyles.TitleText
color: alarm.movement ? Color.Red : Color.White
}
}
//! [1]

//! [2]
Label {
horizontalAlignment: HorizontalAlignment.Left
Container {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Bottom

text: qsTr("X: %1").arg((alarm.x).toPrecision(5))
layout: StackLayout {
orientation: LayoutOrientation.LeftToRight
}

//! [2]
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}

textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
text: qsTr("X: %1").arg((alarm.x).toPrecision(5))

textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}
//! [2]
//! [2]

Label {
horizontalAlignment: HorizontalAlignment.Center
verticalAlignment: VerticalAlignment.Bottom
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}

text: qsTr("Y: %1").arg((alarm.y).toPrecision(5))
text: qsTr("Y: %1").arg((alarm.y).toPrecision(5))

textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}

Label {
horizontalAlignment: HorizontalAlignment.Right
verticalAlignment: VerticalAlignment.Bottom
Label {
layoutProperties: StackLayoutProperties {
spaceQuota: 1
}

text: qsTr("Z: %1").arg((alarm.z).toPrecision(5))
text: qsTr("Z: %1").arg((alarm.z).toPrecision(5))

textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.White
}
}
}
}
9 changes: 3 additions & 6 deletions SensorDemo/assets/rotation3D.qml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ Container {
text: qsTr("%1\u00B0").arg(rotation.x.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
color: Color.White
}
}
//! [1]
Expand All @@ -83,8 +82,7 @@ Container {
text: qsTr("%1\u00B0").arg(rotation.y.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
color: Color.White
}
}

Expand All @@ -97,8 +95,7 @@ Container {
text: qsTr("%1\u00B0").arg(rotation.z.toPrecision(4))
textStyle {
base: SystemDefaults.TextStyles.BodyText
color: Color.Yellow
fontWeight: FontWeight.Bold
color: Color.White
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion accelgame/assets/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Page {
preferredWidth: 600

layoutProperties: StackLayoutProperties {
spaceQuota: 2
spaceQuota: 7
}

layout: DockLayout {}
Expand Down
Binary file modified accelgame/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions accounts/assets/720x720/BackgroundImage.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Copyright (c) 2012 Research In Motion Limited.
*
* 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.
*/

import bb.cascades 1.0

ImageView {
imageSource: "asset:///images/background.amd"
}
3 changes: 3 additions & 0 deletions accounts/assets/720x720/images/background.amd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#RimCascadesAssetMetaData version=1.0
source: "background.png"
sliceMargins: 0 0 0 700
Binary file added accounts/assets/720x720/images/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions accounts/assets/AccountEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@ Page {
layout: DockLayout {}

// The background image
ImageView {
BackgroundImage {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill

imageSource: "asset:///images/background.png"
}

Container {
Expand Down
4 changes: 1 addition & 3 deletions accounts/assets/AccountViewer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ Page {
layout: DockLayout {}

// The background image
ImageView {
BackgroundImage {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill

imageSource: "asset:///images/background.png"
}

//! [0]
Expand Down
20 changes: 20 additions & 0 deletions accounts/assets/BackgroundImage.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* Copyright (c) 2012 Research In Motion Limited.
*
* 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.
*/

import bb.cascades 1.0

ImageView {
imageSource: "asset:///images/background.png"
}
Binary file modified accounts/assets/images/action_addaccount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified accounts/assets/images/action_editaccount.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified accounts/assets/images/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions accounts/assets/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ NavigationPane {
layout: DockLayout {}

// The background image
ImageView {
BackgroundImage {
horizontalAlignment: HorizontalAlignment.Fill
verticalAlignment: VerticalAlignment.Fill

imageSource: "asset:///images/background.png"
}

Container {
Expand Down
1 change: 1 addition & 0 deletions accounts/bar-descriptor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<!-- Unique author ID assigned by signing authority. Required if using debug tokens. -->
<!-- <authorId>ABC1234YjsnUk235h</authorId> -->

<cascadesTheme>bright</cascadesTheme>
<initialWindow>
<systemChrome>none</systemChrome>
<transparent>false</transparent>
Expand Down
Binary file modified accounts/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4ed63df

Please sign in to comment.