change the color of the title bar

Hai there at - it a way to define a particular to the title bar color in the air... ?? No colors by default WHITE, BLUE and BLACK

I tried this-

ThemeGlobals.currentTheme = ThemeGlobals.BLACK;

titleBar.style = TitleBarStyle.default;

instead of that black can I use color say #2e8b57

Any advice/help is appreciated

Thanks in advance :-)

http://deepugeorge2007.WordPress.com/2013/04/19/stylesheet-CSS-file-loading-in-Adobe-Air/

Reffer this also please use instead of the .css file .txt file

Tags: BlackBerry Developers

Similar Questions

  • Change the title bar

    Can I change the title bar, to record a few additional items in the title bar?

    I need to change the title bar and want to add the search box, basically a text of the entry, and the Cancel button. Y at - it a special component available in the SDK of AIR BB10 or I have to create a custom?

    No, not directly. You will be able to extend, add your new items and replace the updateDisplayList to organize what they way you want.

    Alternatively, you can add your items to the display list at the same level as the title bar and in the container owner, position new items 'above' the title bar. Just make sure that you add the new children after the title bar.

  • Change the title bar text

    Hello
    I want to change the name that appears in the title bar for my generated chm file.

    How can I change the text that appears in the title bar. I tried the file > rename project and file > settings of the project but by changing the titles here does not affect what appears in the title bar.

    Thanks in advance for your help

    Pass the field "legend of the window" properties of the window. It is set by deafult when a project is created but is not changed if you rename.

  • How to change the title bar IE8?

    I changed ISP.  But my IE8 title bar always shows the Web page "-provided by 'The former Internet service provider name'". "  How to I get rid of this?

    Remove IE/OE branding:
    http://www.dougknox.com/utility/scripts_desc/unbrand.htm  Bruce Hagen MS - MVP [Mail]

  • How to change the color of the title bar on an application?

    Original title: Windows title bar

    I use Windows Vista Ultimate on a Sony Vaio. I've customized my Windows Vista Basic theme so that my title bar was black. I don't know what happened all of a sudden today. A program called HP Update did something and the title bar changed suddenly light blue and I can't change it back! Everything was fine before. Help!

    Hello

    In native mode, change the title bar, you do not use the Vista theme. Check under personalisation/themes to see if updating is returned to the system in this mode. If so, change it to a standard theme. Once in the standard theme, you should be able to change the color of title bar (and others) in the classic appearance properties.

    If you are using a count of third-party product to change the user interface, you will need to consult with the support for this product.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • How can I change the color of the title bars in Outlook and word?

    In customization after choosing a theme, it gives you the option of the window color and appearance.
    It is said that colors and sizes selected here apply only if you use the Windows 7 basic theme or the theme of access facility.
    However when I change the colors, it does not apply to the suite office (outlook, word, powerpoint, etc...)
    If I use a high contrast theme, it changes the title bar, title bar active...
    If I use windows 7 Basic is not?
    Is there one way other than the themes of high contrast, choose your colors for the task/title bars on of office?

    Hello Robyn B,.

    Thank you for visiting the Microsoft answers community.

    Some of the available color & size options are not available because Windows 7 Basic is a theme and will replace some of the items you choose. If you choose Windows Classic, it should allow you to change these colors and sizes in the window color and appearance UI.

    Hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Use an image for the title bar of accordion

    I downloaded the beta version of Muse 7.1 and I like what I see so far. I don't have the ability to change the title bar of the Panel accordion to a picture or make use of transparency as I saw him in the video tutorial. I also missed its operating mode of the menu bar. That being said I can see that DreamWeaver substitute for some of my clients needs. I can only image how powerful this program will be in another 18 months from now.

    Hey,.

    Look at the following screenshot: http://bc03.co.cc/Cristi/MuseCustom_001.png

    After inserting the accordion of object > Insert panel > accordion, select the first item, then under the filler panel, you can customize the image or transparency. Also double-click the name of the element will allow you to simply change its name. On the menu bar, give us more details and we'll get by. (If you don't see the filler panel go to the window menu and click the menu fill element.)

    See you soon!

  • How to change the color of the title bar?

    Hi @all!

    How to change the color of the title bar? I want to use color.black, not blue? who can tell me, thanks!

    If you change your theme of "Bright" (default on the Z10) 'Dark' (which will default on the Q10) all the bars title will change to black. However, be aware that all components of Cascades will change the bright theme with the dark theme, such as the buttons change to light gray to black.

    See example on this page: http://bbcascades.com/index.php/ui-features/design/42-theme (note this is an old screenshot, I should update to have the bright theme with the new blue header bar)

  • Current color of the title bar

    I'm trying to change the color of the title bar active windows, because I can't say
    which window is active in some cases.

    -I right click on the desktop.
    -Customize
    -Advanced
    -J' I click on the title bar (interactive space) to change to the decline in the asset down the selection to "active title bar".
    - Then I select the custom color for the active title bar supposed. Everything seems fine
    in the preview, but after clicking on "ok", nothing is changed in the Windows environment.

    Any ideas?

    TIA

    Hello

    If you run the Vista Aero theme, you cannot customize these settings. You need spend a classic theme first.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • I'm visually impaired, and due to changes in UI v29, I see is no longer the menu bar where it is hidden in the title bar. How can I move it back to where it belongs?

    I have two computers at home and their improved to 29 of Firefox not knowing it contained UI heavy Exchange. I use the menu, bar and it is now superimposed on the title bar, where due to a visual disability, I can no longer see. Both systems have contrasting colors lit (white on a black background - forget Aero and trick themes), and Firefox is configured to use the system colors.

    Prior to version 29, the menu bar has white text on a black background. now it's on a background of colorful and almost completely invisible to me. The expansion is via the Windows Magnifier and Magnifier added to some Microsoft mouse top of range.

    As you can see on a brand new Virgin of installation of Firefox, no addons, no pre-existing profile, version 29 puts the menu bar on the taskbar. And Firefox, set up as I have, on a configured system with contrasting colors (black in my case) enabled, Firefox is unthemeable.

    But no matter, I Solver this myself. I started in XP and not update Firefox to find a new addon named "Classic theme restaurant" Who did the trick. This mark as resolved. But...

    I wish (not just Firefox) developers who want to fancy to the top of their interfaces would think how it would affect people with visual impairments. We use computers too.

  • How to change the font of the title bar of the JFrame icon context menu?

    Hello world.

    I want to know how to change the font of the text that appears in the context menu is native to click with the right button on the icon that is completely left in the title bar of JFrames which use the default appearance for decoration (JFrame.setDefaultLookAndFeelDecorated (true); / / uses the metal L & F, theme "Océans").

    I searched and found nothing. I thought I could use what I learned to https://forums.oracle.com/message/9221826, but I couldn't find something that worked.

    Thanks to advance.t

    After a few more messing around, I finally did! I love so much it makes me a little sad Java how it is difficult to do things like that. In any case, I found a method here to recursively change the fonts of all components in a JFileChooser, but it does not work on the JPopupMenu (now I know the name) who jumps to the top of the icon in the title bar. So I messed around with this method a few casting and was able to change the fonts of the JMenuItems:

    public static void setSubComponentFont (Component comp[], Font font) {
        for (int x = 0; x < comp.length; x++) {
            if (comp[x] instanceof Container) {
                setSubComponentFont(((Container)comp[x]).getComponents(), font);
            }
            try {
                //comp[x].setFont(font);
                if (comp[x].toString().contains("JMenu")) {
                    for (Component y : ((JMenu)comp[x]).getPopupMenu().getComponents()) {
                        if (y.toString().contains("JMenu")) {
                            y.setFont(font);
                        }
                    }
                }
            } catch (Exception ex) {}
        }
    }
    

    I was inspired by this thread of utiliser.toString () .contains ().

    I also did with nested loops, so the path to the menu items can be seen:

    for (Component a : frame.getLayeredPane().getComponents()) {
        System.out.println(a.toString());
        if (a.toString().contains("MetalTitlePane")) {
            for (Component b : ((Container)a).getComponents()) {
                System.out.println(b.toString());
                if (b.toString().contains("SystemMenuBar")) {
                    for (Component c : ((Container)b).getComponents()) {
                        System.out.println(c.toString());
                        for (Component d : ((JMenu)c).getPopupMenu().getComponents()) {
                            System.out.println(d.toString());
                            if (d.toString().contains("JMenu")) {
                                d.setFont(font);
                            }
                        }
                    }
                }
            }
        }
    }
    

    Each System.out.println () gives an indication of what should go on what follows if State, so they should be used one at a time. This does not work for the title of the JFileChooser however font. When I have time I'll either look no further away inside or ask another question.

    So, if someone else needs like I did, it's here. As a tip, System.out.println () and. toString() are your friends! That's how I learned what was contained in each object, and which path I needed to take to get to objects of interest.

    Thanks anyway!

  • Firefox tabs 9.0.1 not in the title bar

    My tabs are below the menu bar. I saw on another machine that I have that the tabs are in the title bar, what I prefer.

    I checked the config: about, and browser.tabs fields are all resolved by default. I tried to reduce and optimize the window. I searched in the options, but can't find anything related to positioning tabs, other than the "tabs on top" (that I have). I tried "customization", thinking that I might be able to drag the tabs in the title bar, but no luck.

    I note that the title bar is a symbol of Earth firefox, not an orange tab, and the title bar is active, display of the current page that I am.

    You can check the value of the browser.tabs.drawInTitlebar pref on the topic: config page.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • icon on the title bar

    Hello, I put an icon on the title bar image?

    Hi @aashishsaini75. Here is my code:

    import bb.cascades 1.4
    
    Page {
        id: thePage
        titleBar: TitleBar {
            kind: TitleBarKind.FreeForm
            kindProperties: FreeFormTitleBarKindProperties {
                Container {
    
                    layout: StackLayout {
                        orientation: LayoutOrientation.RightToLeft
                    }
                    rightPadding: -12
                    Label {
                        textStyle {
                            color: Color.White
                        }
                        verticalAlignment: VerticalAlignment.Center
                        layoutProperties: StackLayoutProperties {
                            spaceQuota: 1
                        }
                        accessibility.labelledBy: todoLabelId
                    }
                    ImageView {
                        id: toggleExpanded
                        property bool checked: false
                        imageSource: "asset:///[email protected]"
                        verticalAlignment: VerticalAlignment.Center
                        horizontalAlignment: HorizontalAlignment.Center
                        accessibility.labelledBy: todoLabelId
                    }
                } // Container
    
            } // FreeFormTitleBarKindProperties
        } // TitleBar
    } // Page
    

    Hope help you.

  • Problem: The Page with the title bar, Vertical alignment Center does not work BB 10 keyboard (720 x 720)

    Hello

    I want centered vertically align something (for example, a label) on a page with the qml following, but it is not aligned properly on the keyboard BB (720 x 720), it aligns on the contrary always on top. It aligns not centered vertically as expected on BB 10 all touch (1280 x 768).

    import bb.cascades 1.0
    
    Page {
        titleBar: TitleBar {
            title: "Title"
        }
        Container {
            layout: DockLayout {
            }
            background: Color.create("#444444")
            verticalAlignment: VerticalAlignment.Fill
            Label {
                text: "label"
                verticalAlignment: VerticalAlignment.Center
            }
        }
    }
    

    I realize also realize that if I remove the title bar, and then it snaps as I want. Anyone have a solution this? Thank you.

    Try with this:

        titleBar: TitleBar {
            title: "Title"
            scrollBehavior: TitleBarScrollBehavior.Sticky
        }
    
  • Update the title bar or something when NFC Message received (HELP!)

    I send you a message using NFC. I want to update the title bar title whenever my application receives a message. Code does not work.

    I use the example of receiver NFC of GitHub with some modifications.

    Any ideas why it does not work? In addition, no idea where I would add code to trigger another method, as soon as the new payload is received?

    main.cpp

     

    /* Copyright (c) 2012, 2013  BlackBerry 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.
    */
    
    #include "NfcReceiver.hpp"
    
    #include 
    #include 
    #include 
    #include 
    
    #include 
    #include 
    
    using namespace bb::cascades;
    
    Q_DECL_EXPORT int main(int argc, char **argv)
    {
        Application app(argc, argv);
    
        // localization support
        QTranslator translator;
        const QString locale_string = QLocale().name();
        const QString filename = QString::fromLatin1("nfcreceiver_%1").arg(locale_string);
        if (translator.load(filename, "app/native/qm")) {
            app.installTranslator(&translator);
        }
    
    //! [0]
        NfcReceiver nfcReceiver;
    
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(&app);
        qml->setContextProperty("_nfcReceiver", &nfcReceiver);
    
    //! [0]
    
        AbstractPane *root = qml->createRootObject();
    
        //set objects
        TitleBar* tb = new TitleBar();
        tb = root->findChild("titleBar");
    
        Application::instance()->setScene(root);
    
        return Application::exec();
    }
    

    NfcReceiver.cpp

    /* Copyright (c) 2012, 2013  BlackBerry 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.
    */
    
    #include "NfcReceiver.hpp"
    
    #include 
    #include 
    #include 
    #include 
    
    //! [0]
    NfcReceiver::NfcReceiver(QObject *parent)
        : QObject(parent)
        , m_messageRecords(new bb::cascades::QVariantListDataModel()),
        //THIS PART BELOW. NOT SURE IF I AM DOING SOMETHING RIGHT OR WRONG NEED TO EXPOSE tb contextProperty to this class...
        tb(new bb::cascades::TitleBar())
    {
        m_messageRecords->setParent(this);
        tb->setParent(this);
    
        // Create an InvokeManager
        bb::system::InvokeManager *invokeManager = new bb::system::InvokeManager(this);
    
        /**
         * The signal invoked(const bb::system::InvokeRequest&) is used for applications.
         */
        bool ok = connect(invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)),
                          this, SLOT(receivedInvokeTarget(const bb::system::InvokeRequest&)));
        Q_ASSERT(ok);
        Q_UNUSED(ok);
    
    }
    //! [0]
    
    //! [1]
    void NfcReceiver::receivedInvokeTarget(const bb::system::InvokeRequest& request)
    {
        // The data contains our NDEF message
        const QByteArray data = request.data();
    
        // Create out NDEF message
        const QtMobilitySubset::QNdefMessage ndefMessage = QtMobilitySubset::QNdefMessage::fromByteArray(data);
    
        // Fill the model with the single records
        m_messageRecords->clear();
    
        for (int i = 0; i < ndefMessage.size(); ++i) {
            const QtMobilitySubset::QNdefRecord record = ndefMessage.at(i);
    
            QVariantMap entry;
            entry["tnfType"] = record.typeNameFormat();
            entry["recordType"] = QString::fromLatin1(record.type());
            entry["payload"] = QString::fromLatin1(record.payload());
            entry["hexPayload"] = QString::fromLatin1(record.payload().toHex());
    
            m_messageRecords->append(entry);
    
        }
    
        emit messageReceived();
    
        //set titlebar title // this is failing... :(
        setTitle();
    
    }
    //! [1]
    
    bb::cascades::DataModel* NfcReceiver::messageRecords() const
    {
        return m_messageRecords;
    }
    
    void NfcReceiver::setTitle(){
        tb->setTitle("boo");
    }
    

     

    NfcReceiver.hpp

    /* Copyright (c) 2012, 2013  BlackBerry 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.
    */
    
    #ifndef NFCRECEIVER_HPP
    #define NFCRECEIVER_HPP
    
    #include 
    
    #include 
    #include 
    #include 
    #include 
    namespace bb { namespace cascades { class Application; }}
    
    /*!
     * @brief A helper class that encapsulates the code to receive a NDEF message.
     */
    class NfcReceiver : public QObject
    {
        Q_OBJECT
    
        // A property to make the received NDEF message records available to the UI
        Q_PROPERTY(bb::cascades::DataModel* messageRecords READ messageRecords CONSTANT)
    
    public:
        /**
         * Creates a new NFC receiver object.
         *
         * @param parent The parent object.
         */
        NfcReceiver(QObject *parent = 0);
    
    Q_SIGNALS:
        // This signal is emitted whenever a new NDEF message has been received
        void messageReceived();
    
    private Q_SLOTS:
        // This slot is invoked whenever the InvokeManager detects an invocation request for this application
        void receivedInvokeTarget(const bb::system::InvokeRequest& request);
        // SET TITLE
        Q_INVOKABLE void setTitle();
    private:
        // The accessor method of the property
        bb::cascades::DataModel* messageRecords() const;
    
        // The model that contains the records of the received NDEF message
        bb::cascades::QVariantListDataModel* m_messageRecords;
    
        //NOT SURE IF I AM EXPOSING THE TITLEBAR CORRECTLY HERE
        bb::cascades::TitleBar* tb;
    };
    
    #endif
    

    hand. QML

     

    /* Copyright (c) 2012, 2013  BlackBerry 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
    
    Page {
        titleBar: TitleBar {
            id: t
            objectName: "titleBar"
            title: "awesome"
        }
        Container {
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
    
            // The background image
           /* ImageView {
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill
    
                imageSource: "asset:///images/background.png"
            }*/
    
            //! [0]
            // The list view that shows the records of the received NDEF message
            ListView {
                horizontalAlignment: HorizontalAlignment.Fill
                verticalAlignment: VerticalAlignment.Fill
    
                dataModel: _nfcReceiver.messageRecords
    
                listItemComponents: [
    
                    ListItemComponent {
    
                        type: ""
    
                        Container {
                            preferredWidth: 768
                            leftPadding: 10
                            rightPadding: 10
    
                            Field {
                                title: qsTr("tnf type")
                                value: ListItemData.tnfType == "0" ? qsTr("Empty Tag") :
                                       ListItemData.tnfType == "1" ? qsTr("Well Known Type") :
                                       ListItemData.tnfType == "2" ? qsTr("Media (MIME)") :
                                       ListItemData.tnfType == "3" ? qsTr("Uri") :
                                       ListItemData.tnfType == "4" ? qsTr("External") : ""
                            }
    
                            Field {
                                title: qsTr("record type")
                                value: ListItemData.recordType == "Sp" ? qsTr("Smart Poster") :
                                       ListItemData.recordType == "T" ? qsTr("Text") :
                                       ListItemData.recordType == "U" ? qsTr("Uri") :
                                       ListItemData.recordType == "Gc" ? qsTr("Generic Control") :
                                       ListItemData.recordType == "Hr" ? qsTr("Handover Request") :
                                       ListItemData.recordType == "Hs" ? qsTr("Handover Select") :
                                       ListItemData.recordType == "Hc" ? qsTr("Handover Carrier") :
                                       ListItemData.recordType == "Sig" ? qsTr("Signature") : ""
                            }
    
                            Field {
                                title: qsTr("payload")
                                value: ListItemData.payload
                            }
    
                            Field {
                                title: qsTr("hex")
                                value: ListItemData.hexPayload
                            }
                        }
                    }
                ]
            }//end listview
            Label{
                // I WANT TO GET THE PAYLOAD AND PARSE IT IN A CUSTOM WAY HERE....
                id: parsedText
                text: ""
                textStyle.fontSize: FontSize.XXLarge
                textStyle.color: Color.Black
    
            }
            //! [0]
        }
    }
    

     

    I'm just trying to help here. What does not work is I looked at your code and I looked at my code and I do not have a reference point on what parts do what...

    I want to respond in a tough manner and does not help when I'm obviously confused on the implementation and the instructions are not clear. The documentation is written for someone who has already worked with NFC and protocols, not beginners wishing to implement NFC functionality in the application.

    Based on this kind of response, I'll just leave NFC functionality out of my application.

Maybe you are looking for