MSameer
|
2012-01-31
, 16:01
|
|
Posts: 605 |
Thanked: 1,778 times |
Joined on Feb 2008
@ Helsinki
|
#501
|
The Following User Says Thank You to MSameer For This Useful Post: | ||
|
2012-01-31
, 16:06
|
Posts: 21 |
Thanked: 19 times |
Joined on Dec 2011
@ Malaysia
|
#502
|
|
2012-01-31
, 16:15
|
|
Posts: 671 |
Thanked: 876 times |
Joined on Mar 2011
|
#503
|
Here's Colors.qml for the upcoming version:
http://gitorious.org/quran/quran/blo...qml/Colors.qml
Most of the work on the app side has been done already. Some parts are still missing.Code:1 // -*- qml -*- 2 import QtQuick 1.0 3 4 QtObject { 5 id: colors 6 7 property color textColor: _settings.nightMode ? "white" : "black" 8 property color backgroundColor: _settings.nightMode ? "black" : "white" 9 property color verseColor: _settings.nightMode ? "white" : "black" 10 property color titleColor: _settings.nightMode ? "black" : "white" 11 property color subtitleColor: _settings.nightMode ? "black" : "white" 12 property color highlightColor: _settings.nightMode ? "red" : "red" 13 property color faderColor: _settings.nightMode ? "black" : "steelblue" 14 property color sectionColor: "#a3daf4" // QColor(163, 218, 244) 15 property color col1: Qt.lighter(colors.sectionColor, 1.2) 16 property color col2: Qt.lighter(colors.sectionColor, 1.3) 17 }
If that file is simple enough then we can ship one with each theme. It defines colors for both normal mode and night mode.
I can also try to use an ini file for reading the colors.
We can ship an ini file with each theme that defines the colors.
The question is: Should the night mode be a separate theme or should it be a property of the used theme ?
I mean should we ship 2 themes by default: Day mode and night mode or should we let each theme define the colors for night mode ?
Option 1 simplifies the creation of themes.
Option 2 guarantees that each theme gets a night mode.
|
2012-02-03
, 08:20
|
|
Posts: 671 |
Thanked: 876 times |
Joined on Mar 2011
|
#504
|
The Following User Says Thank You to TransTech For This Useful Post: | ||
|
2012-02-03
, 09:33
|
|
Posts: 605 |
Thanked: 1,778 times |
Joined on Feb 2008
@ Helsinki
|
#505
|
|
2012-02-03
, 09:42
|
|
Posts: 671 |
Thanked: 876 times |
Joined on Mar 2011
|
#506
|
I don't understand. Why are you posting the new design if you prefer the old desogn
|
2012-02-03
, 19:09
|
|
Posts: 605 |
Thanked: 1,778 times |
Joined on Feb 2008
@ Helsinki
|
#507
|
The Following User Says Thank You to MSameer For This Useful Post: | ||
|
2012-02-04
, 08:57
|
|
Posts: 671 |
Thanked: 876 times |
Joined on Mar 2011
|
#508
|
We are not using Qt components anyway.
The current design needs polishing a bit but I don't think we need a virtual arabic keyboard. There's already one available for Maemo.
Anyway, I've implemented the theming support and pushed it to git.
I'm now thinking whether I should implement the resume feature now or postpone it to the next version...
|
2012-02-04
, 11:26
|
|
Posts: 605 |
Thanked: 1,778 times |
Joined on Feb 2008
@ Helsinki
|
#509
|
|
2012-02-04
, 12:35
|
|
Posts: 671 |
Thanked: 876 times |
Joined on Mar 2011
|
#510
|
Have you tried mcip http://talk.maemo.org/showthread.php?t=72974 ?