0

我正在尝试将导航视图的“ui”属性设置为亮,但它只显示在深色主题中。这是我的看法。我错过了什么?

Ext.define('VisitTCMIndy.view.Social', {
extend: 'Ext.navigation.View',
xtype: 'socialcard',

config: {
    iconCls: 'chat',
    title: 'Social',
    layout: 'card',
    ui: 'light',
    items: [
        {
            xtype: 'panel',
            title: 'Social',
            layout: 'vbox',
            items: [
                {
                    xtype: 'panel',
                    layout: 'hbox',
                    flex: 1,
                    items: [
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Facebook',
                            src: "resources/images/facebookbutton.png",
                            flex: 1
                        },
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Twitter',
                            src: "resources/images/twitterbutton.png",
                            flex: 1
                        }
                    ]
                },
                {
                    xtype: 'panel',
                    layout: 'hbox',
                    flex: 1,
                    items: [
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Pinterest',
                            src: "resources/images/pinterestbutton.png",
                            flex: 1
                        },
                        {
                            xtype: 'image',
                            baseCls: 'socialbutton',
                            title: 'Instagram',
                            src: "resources/images/instagrambutton.png",
                            flex: 1
                        }
                    ]
                },
                {
                    xtype: 'button',
                    text: 'Take a Picture',
                    style: 'margin:3%'
                }
            ]
        }
    ]

}
});
4

1 回答 1

1

如果您的意思是要更改ui导航视图的导航栏,那么应该这样做:

config: {
  iconCls: 'chat',
  title: 'Social',
  layout: 'card',
  navigationBar: {
    ui: 'dark'
  }
...

希望这可以帮助

于 2013-02-19T22:57:40.577 回答