Skip to content

Commit

Permalink
BB10: Better support for dark theme
Browse files Browse the repository at this point in the history
Dark theme is default on devices with OLED display and some resources
where not visible due to being dark too.
  • Loading branch information
leppa committed Sep 26, 2014
1 parent e5e5bee commit c5712d0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qml/bb10/DictionaryDelegate.qml
Expand Up @@ -84,7 +84,7 @@ Container {
}
}
ImageView {
imageSource: "asset:///icons/collapse.png"
imageSource: "asset:///icons/collapse" + (darkTheme ? "_inverted" : "") + ".png"
topMargin: 0
bottomMargin: 0
preferredWidth: 35
Expand All @@ -97,7 +97,7 @@ Container {
bottomMargin: 0
}
ImageView {
imageSource: "asset:///icons/expand.png"
imageSource: "asset:///icons/expand" + (darkTheme ? "_inverted" : "") + ".png"
topMargin: 0
bottomMargin: 0
preferredWidth: 35
Expand Down
4 changes: 3 additions & 1 deletion qml/bb10/MainPage.qml
Expand Up @@ -25,6 +25,8 @@ import bb.system 1.0
import taot 1.0

Page {
property bool darkTheme: Application.themeSupport.theme.colorTheme.style === VisualStyle.Dark

titleBar: TitleBar {
kind: TitleBarKind.FreeForm
kindProperties: FreeFormTitleBarKindProperties {
Expand Down Expand Up @@ -76,7 +78,7 @@ Page {
}

Button {
imageSource: "asset:///icons/swap.png"
imageSource: "asset:///icons/swap" + (darkTheme ? "_inverted" : "") + ".png"
visible: translator.canSwapLanguages
onClicked: {
translator.swapLanguages();
Expand Down
Binary file added qml/bb10/icons/collapse_inverted.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added qml/bb10/icons/expand_inverted.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added qml/bb10/icons/swap_inverted.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5712d0

Please sign in to comment.