1. onmyown's Avatar
    OK bbleaks team. Work your magic!

    Posted via CB10
    08-31-13 09:41 AM
  2. ckroboth's Avatar
    I bet if I hook up my Z10 to my car battery I can get my phone to run for a month...lol

    Trusted Member
    You have the directions for this? I can't figure out the car connection stuff...

    Black theme will be a nice touch

    Posted via CB10
    08-31-13 09:49 AM
  3. travisredpath's Avatar
    Yes, at the moment not available for them.
    I've already posted a screenshot of this working. It's quite trivial to implement.
    08-31-13 10:04 AM
  4. eBud's Avatar
    Password Keeper is "dark themed" now...very nice...
    08-31-13 10:37 AM
  5. Adam Szucs's Avatar
    I've already posted a screenshot of this working. It's quite trivial to implement.
    I don't know how (and couldn't fin a way) to change QML based on settings, so please share your method.

    Tapped on my Z10 in CB10 | #BerryLeaks
    08-31-13 10:44 AM
  6. travisredpath's Avatar
    I don't know how (and couldn't fin a way) to change QML based on settings, so please share your method.
    In your main method before
    Code:
    bb::cascades::Application app(argc, argv);
    add either
    Code:
    setenv("CASCADES_THEME", "bright", 1);
    or
    Code:
    setenv("CASCADES_THEME", "dark", 1);
    depending on which theme you want (setenv is in stdlib.h). Just like the Calendar app once the theme has been changed in your settings sheet the app will need to be restarted in order for it to be applied.
    Mecca EL, Chungfah and Adam Szucs like this.
    08-31-13 11:09 AM
  7. Kris Simundson's Avatar
    In your main method before
    Code:
    bb::cascades::Application app(argc, argv);
    add either
    Code:
    setenv("CASCADES_THEME", "bright", 1);
    or
    Code:
    setenv("CASCADES_THEME", "dark", 1);
    depending on which theme you want (setenv is in stdlib.h). Just like the Calendar app once the theme has been changed in your settings sheet the app will need to be restarted in order for it to be applied.
    Is this in the BlackBerry official documentation? Cause I couldn't find it anywhere.

    Posted Via Q10 running 10.2.0.xxxx | BerryLeaks Co-founder
    08-31-13 11:10 AM
  8. travisredpath's Avatar
    Is this in the BlackBerry official documentation? Cause I couldn't find it anywhere.
    Not that I can see, no. But it is basically the same thing that you're doing in the bar descriptor with:

    Code:
    <env var="CASCADES_THEME" value="dark"/>
    08-31-13 11:16 AM
  9. Kris Simundson's Avatar
    Not that I can see, no. But it is basically the same thing that you're doing in the bar descriptor with:

    Code:
    <env var="CASCADES_THEME" value="dark"/>
    Interesting, so basically set the "setenv" and than call on it in settings?

    Posted Via Q10 running 10.2.0.xxxx | BerryLeaks Co-founder
    08-31-13 11:17 AM
  10. travisredpath's Avatar
    Interesting, so basically set the "setenv" and than call on it in settings?
    The way I did it was once the theme was changed in the settings sheet it passes the slected index to a c++ method that does the following:

    Code:
    void ApplicationUI::setTheme(int index)
    {
    	if (index == m_theme)
    		return;
    	QFile::remove("data/dark.dat");
    	QFile::remove("data/bright.dat");
    	if (index == 0)
    	{
    		QFile file("data/bright.dat");
    		file.open(QFile::WriteOnly);
    		file.close();
    		m_theme = 0;
    	}
    	else
    	{
    		QFile file("data/dark.dat");
    		file.open(QFile::WriteOnly);
    		file.close();
    		m_theme = 1;
    	}
    }
    Where index doesn't quite line up with the screenshots I uploaded because I dropped the default option and reordered bright and dark to match the calendar app screenshots. Then in main before constructing the bb::cascades::Application object:

    Code:
    struct stat buf;
    int theme = 0;
    if (!stat("data/bright.dat", &buf))
    {
    	setenv("CASCADES_THEME", "bright", 1);
    	theme = 0;
    }
    else if (!stat("data/dark.dat", &buf))
    {
    	setenv("CASCADES_THEME", "dark", 1);
    	theme = 1;
    }
    This gets me around ever having to worry about touching a Qt object that may or may not function before cascades/Qt is initialized.
    08-31-13 11:35 AM
  11. g2gcya's Avatar
    The way I did it was once the theme was changed in the settings sheet it passes the slected index to a c++ method that does the following:

    Code:
    void ApplicationUI::setTheme(int index)
    {
    if (index == m_theme)
    return;
    QFile::remove("data/dark.dat");
    QFile::remove("data/bright.dat");
    if (index == 0)
    {
    QFile file("data/bright.dat");
    file.open(QFile::WriteOnly);
    file.close();
    m_theme = 0;
    }
    else
    {
    QFile file("data/dark.dat");
    file.open(QFile::WriteOnly);
    file.close();
    m_theme = 1;
    }
    }
    Where index doesn't quite line up with the screenshots I uploaded because I dropped the default option and reordered bright and dark to match the calendar app screenshots. Then in main before constructing the bb::cascades::Application object:

    Code:
    struct stat buf;
    int theme = 0;
    if (!stat("data/bright.dat", &buf))
    {
    setenv("CASCADES_THEME", "bright", 1);
    theme = 0;
    }
    else if (!stat("data/dark.dat", &buf))
    {
    setenv("CASCADES_THEME", "dark", 1);
    theme = 1;
    }
    This gets me around ever having to worry about touching a Qt object that may or may not function before cascades/Qt is initialized.
    Woooooo, ok. I cant understand haha. We need more developer for BlackBerry.

    Posted via CB10
    shivaji likes this.
    08-31-13 11:40 AM
  12. travisredpath's Avatar
    Maybe this is more helpful than my last post:

    https://github.com/tredpath/ThemeSetter
    08-31-13 12:10 PM
  13. Blacklatino's Avatar
    Better if the dark theme applied to all apps and menu, feels more consistent.

    Posted via CB10
    True. But, right now, we have to take whatever we can get. One day it may happen as an option.
    noez92 likes this.
    08-31-13 12:21 PM
  14. rgarza8's Avatar
    Can't wait for this leak. Bring it on.

    Posted via CB10
    08-31-13 12:25 PM
  15. in_loco_nomen's Avatar
    I'm wondering what the squircle would look like with the new dark theme?

    Would a new evolution in the squircle design make a dark theme the best home of the squircle?

    Could be a killer feature to have.

    Just say'n.

    Posted via CB10 | STL 100-3 | Squircle of Trust Co-Founder
    jakie55 and Killington like this.
    08-31-13 02:40 PM
  16. etnt7's Avatar
    I'm running os 10.2.0.1443 software release 10.2.0.210. Will I receive the update?
    Provider Vodafone Netherlands
    I've checked already but haven't seen an update.

    Posted via CB10
    08-31-13 03:04 PM
  17. FuzzyFish's Avatar
    Ya baby!!

    Now bring back the squarcle!

    Posted via CB10
    in_loco_nomen likes this.
    08-31-13 03:08 PM
  18. n8tiveg's Avatar
    I'm running os 10.2.0.1443 software release 10.2.0.210. Will I receive the update?
    Provider Vodafone Netherlands
    I've checked already but haven't seen an update.

    Posted via CB10
    According to the OP it's not available yet he's just showing us what may/will be available

    Posted via CB10
    etnt7 likes this.
    08-31-13 03:13 PM
  19. BerryManUK85's Avatar
    There is already an 1581 build? I thought the current leaked build is only 10 days old how did it jump to that number so quick

    Posted via CB10
    Three builds get churned out a day, which is why I wasn't 100% certain about why the leaks team start a bug report thread with each build. 150 testers a day soak the new builds for a few days at a time, so a good size proportion of the bugs and features that are being seen will have already been fixed or enhanced potentially weeks ago
    08-31-13 03:22 PM
  20. Kris Simundson's Avatar
    Three builds get churned out a day, which is why I wasn't 100% certain about why the leaks team start a bug report thread with each build. 150 testers a day soak the new builds for a few days at a time, so a good size proportion of the bugs and features that are being seen will have already been fixed or enhanced potentially weeks ago
    We never start the "bug" threads because we know this exact fact, something everyone else seems to forget

    Posted Via Q10 running 10.2.0.xxxx | BerryLeaks Co-founder
    toobs623 likes this.
    08-31-13 03:33 PM
  21. Kris Simundson's Avatar
    According to the OP it's not available yet he's just showing us what may/will be available

    Posted via CB10
    It's a OTA update for BlackBerry Employees

    Posted Via Q10 running 10.2.0.xxxx | BerryLeaks Co-founder
    etnt7 likes this.
    08-31-13 03:34 PM
  22. rgarza8's Avatar
    It's a OTA update for BlackBerry Employees

    Posted Via Q10 running 10.2.0.xxxx | BerryLeaks Co-founder
    Can it be leaked?


    Posted via CB10
    08-31-13 03:38 PM
  23. BerryManUK85's Avatar
    We never start the "bug" threads because we know this exact fact, something everyone else seems to forget

    Posted Via Q10 running 10.2.0.xxxx | BerryLeaks Co-founder
    My apologies Kris, I follow all these threads and I came to that conclusion quite erroneously
    08-31-13 03:39 PM
  24. BerryManUK85's Avatar
    Can it be leaked?


    Posted via CB10

    Not unless your PIN is registered to a BBRY beta provisioning server it can't.. unless the autoloaders "become available"
    08-31-13 03:41 PM
  25. MyFirstOwnUsername's Avatar
    Dark themes allow smoother scrolling, at least this is my impression. I experienced that under Android and in current Z10 10.2 leak you can try yourself by comparing the app store scrolling to settings menu scrolling. This might not be a representative comparison, however I still believe that dark themes offer smoother scrolling.
    08-31-13 03:56 PM
110 12345

Similar Threads

  1. Is a case/shell/holster really necessary for Z10?
    By Leodqv in forum BlackBerry Z10
    Replies: 32
    Last Post: 08-22-16, 10:58 AM
  2. BlackBerry on Campus!
    By masterscarhead1 in forum Rehab & Off-Topic Lounge
    Replies: 11
    Last Post: 09-04-13, 05:11 PM
  3. Replies: 26
    Last Post: 09-02-13, 02:57 PM
  4. Help with restoring Z10 to previous backup.
    By soccerbabas in forum BlackBerry Z10
    Replies: 6
    Last Post: 08-31-13, 06:31 AM
LINK TO POST COPIED TO CLIPBOARD