Print Page | Close Window

VisualStudio2015 Dark theme

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23186
Printed Date: 26 April 2024 at 3:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VisualStudio2015 Dark theme
Posted By: f.ctnzt@gmail.com
Subject: VisualStudio2015 Dark theme
Date Posted: 06 November 2016 at 2:05pm
I have 2 questions.
1) How to change the background or forecolor menu (controlfile) as shown in the video, texts can not see http://screencast.com/t/gMkfMqai    ..... can 'change the background or text color

2) how change the color of the status bar

thanks



Replies:
Posted By: olebed
Date Posted: 08 November 2016 at 2:31pm
Hello,

1) in themes VS2015, VS2012 and Office2013  should be used CXTPRibbonBackstageView instead old CXTPRibbonSystemPopupBar. See our example  Samples\ActiveX\CommandBars\VB\RibbonSample\frmMain.frm  in method CreateBackstageView()
Sub CreateBackstageView()
    Dim RibbonBar As RibbonBar
    Set RibbonBar = CommandBars.ActiveMenuBar
    
    Dim BackstageView As RibbonBackstageView
    Set BackstageView = CommandBars.CreateCommandBar("CXTPRibbonBackstageView")
    Select Case CommandBars.VisualTheme
        Case xtpThemeOffice2013
            BackstageView.SetTheme xtpThemeOffice2013
        Case xtpThemeVisualStudio2015
            BackstageView.SetTheme xtpThemeVisualStudio2015
        Case Else
            BackstageView.SetTheme xtpThemeRibbon
    End Select
    
    Set RibbonBar.AddSystemButton.CommandBar = BackstageView
    
    BackstageView.AddCommand ID_FILE_SAVE, "Save"
    BackstageView.AddCommand ID_FILE_SAVE_AS, "Save As"
    BackstageView.AddCommand ID_FILE_OPEN, "Open"
    BackstageView.AddCommand ID_FILE_CLOSE, "Close"
    ...


2) There are no ways to change colors in status bar from VB or C#. But you can change VisualStudio2015Dark.ini file in VisualStudio2015.dll  in section [CommandBars.StatusBar].

Regards,
 Oleksandr Lebed



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net