Themed title bar not working in sublime text 4 - sublimetext

I updated my sublime text 3 to version 4 and in there article, they said that:
The Adaptive theme on Windows and Linux now features custom title bars.
But i can't figure out how to use it. I tried adding this settings:
"ui_native_titlebar": true,
"themed_title_bar": true,
But no luck there. And i am using the ayu theme.
Here's how it looks right now:
Please anyone can help me that would be great!
Also i am on Linux mint.
Have a great day!

This is outlined in the comment on the preference:
// Adaptive theme only: controls if a custom or default title bar is used.
// Note that on Windows, the hamburger menu is used whenever this is
// enabled and the adaptive theme is in use.
"themed_title_bar": true,
The key part being that this is only supported by default in the Adaptive theme.
In order for the title bar to be themed, the theme itself needs to provide a theme rule that does it, and (ideally) that theme rule would be tied to the setting here.
In order to get themed title bar in other themes, you would need to either ask the author of the theme to support it, or create a customization.
Selecting UI: Customize Theme from the command palette will open a window similar to the settings window that allows you to add rules to your current theme.
Something like this would add support for the setting; you may need to adjust the colors to something that matches better. Also, if the right hand pane already has other customizations by you, just copy the rule into the appropriate part of the file instead.
// Documentation at https://www.sublimetext.com/docs/themes.html
{
"variables":
{
},
"rules":
[
{
"class": "title_bar",
"settings": ["themed_title_bar"],
"fg": "color(white)",
"bg": "color(var(--background) blend(white 85%))",
},
]
}
[edit]
themed_title_bar only works on Windows and MacOS; under Linux it doesn't do anything because it's the job of the window manager theme to customize the window decorations.
On Linux there is a different option for this, gtk_client_side_window_decorations which controls whether client side window decorations are enabled or not. The default value for this is true if you're using gnome and false otherwise.
You can set it explicitly in your user preferences to turn it on or off (a restart of Sublime Text is required).
For more details, see Sublime Text 4 hide title bar.

Related

how to show the menu bar in sublime text 4 (windows)

I updated my sublime text after which I can't seem to see my menu bar on top of the screen but now have to click the 3 lines button to view it.is there any way to make show the menu bar like normal again?
I tried going to "view" and enabling it but I can't find any "menu bar setting"
I think showing the hamburger menu is a feature of your current theme.
Try changing your theme Preferences-->Select Theme
Alternatively customize your theme Preferences-->Customize Theme
(refer to your themes documentation).
Customize the rules in the theme file as required.
See the sublime forum post
Example found from the link above, works for the adaptive theme:
"rules":
[
{
"class": "title_bar",
"bg": "#0000"
}
]
Happy Coding:)
This is kind of strange, as my View menu has a Hide/Show Menu option on it right near the top. At any rate, to show the menu (or hide it again), select View → Show Console (or hit Ctrl`) and enter the following command:
window.run_command("toggle_menu")
and the menu should show up again.

Change context style menu windows 10

I managed to interpret a mmstyles file through a tool called "msstylesEditor" but I can't find where I can modify the values for the background and font color of the context menu.
Also if anyone could link me to some tutorials on how to make theme like those found on DeviantArt i'd be glad ! I couldn't find anything !
Here is how msstylesEditor looks
The background can be changed under Menu -> POPUPBACKGROUND. This is an image (1x1px). You have to export it, change its color, then replace the old image.
You also might want to look at the POPUPBORDER and POPUPITEM parts, in order to fully change the menus appearance. I havent verified where the font color is located, but i guess its the TEXTCOLOR properties
of the just stated parts.
The aim of the tool you linked, is mainly to modify existing themes. The styles on DeviantArt are probably made using a (commercial) tool called "Windows Style Builder".

Programmatically change bold, underline, italic of text selection using CKEditor API

I'm using my own UI to drive CKEditor's API. The following API works to toggle the selected text with bold and italic respectively, but does not work for underline.
editorInstance.execCommand( 'bold' );
editorInstance.execCommand( 'italic' );
editorInstance.execCommand( 'underline' ); // does not work
I've checked the source and have verified that the underline command is indeed present.
How do I programmatically underline selected text using CKEditor?
You're dealing here with the Advanced Content Filter. Precisely with its effect on commands' states. In the standard preset, which I assume you use, the Underline button is removed from toolbar and therefore the related command is disabled. When command is disabled, it cannot be executed.
You can verify this with:
editor.getCommand( 'underline' ).state == CKEDITOR.TRISTATE_DISABLED;
I anticipate that you'll try to remove the entire toolbar plugin. To save you some time - it's the toolbar plugin what registers most of the features (by registering enabled buttons). So if you remove the toolbar, then all features (commands are part of features) which are registered this way will be disabled. You should find this guide helpful - Plugins integration with the ACF.

Why do Sublime Text 3 Themes not affect the sidebar?

I generally only use dark themes for coding, so it's really annoying that Sublime Text 3's sidebar stays light themed whatever theme you apply.
Does anyone know how to change this?
My configuration: Mac OSX 10.10.1 Yosemite, Sublime Text 3 Stable Channel, Build 3065
You are looking for a Sublime UI Theme, which modifies Sublime's User Interface (e.g.: side bar). It's different from a Color Theme/Scheme, which modifies only the code part of Sublime's window. I tested a lot of UI Themes and the one I liked the most was Theme - Soda. You can install it using Sublime's Package Control. To enable it, go to Preferences >> Settings - User and add this line:
"theme": "Soda Dark 3.sublime-theme",
Here is a printscreen of my Sublime Text 3 with Soda Dark UI Theme and Twilight default Color Scheme:
The most recent version of Sublime has fixed this issue, click on Preferences, click on Theme select Adaptive.sublime-theme. This will change the sidebar to a dark colored background.
You can manually change the sidebar style by editing Default.sublime-theme.
To do this, edit the “sidebar_tree”, “sidebar_heading” etc., classes in Packages/Theme - Default/Default.sublime-theme. You can override those defaults by putting this Default.sublime-theme inside the Packages/User folder.
From the Sublime Text menu, selecting “Preferences → Browse Packages…” will take you to it.
You need to restart Sublime completely in order for a theme to fully take effect. Just changing and saving Preferences.sublime-settings or using a theme-changing plugin won't do it. You need to use ⌘Q or Sublime Text -> Quit, not just close the window by clicking the red dot.
I thought I would put a note here that explains a basic misconception for a lot of people who are using these Text Editors... Sublime Text in particular (or at least that's the one I use, so I don't know how it works for other editors):
There are "Themes" and there are "Color Schemes". They are similar but affect different things. "Themes" actively change the entire UI, and can include a Color Scheme if you set it up that way. This typically includes the sidebar, and can also include options for the file tabs, and some even include icons for the sidebar as well. And then we have "Color Schemes" which only change the coding windows and nothing else... not the Sidebar, nor the File tabs, etc.
The confusion happens because some people call Color Schemes "Themes" which makes folks think that their "Theme" is going to change everything.... when technically, it's just a color scheme.
And an additional note: Themes don't automatically install for all users. When I install a Theme, I have to open my User preferences (under "preferences > Settings - User"), and then you have to add the line which says something like:
"theme": "Theme-Name.sublime-theme"
(where "Theme-Name" is the name of your theme).
This is different than just activating a color scheme. If you've chosen a color scheme via the dropdown menus in Sublime Text, you will see a line in there like this:
"color_scheme": "Packages/Color-Scheme-Name.tmTheme"
(where "Color-Scheme-Name" is the name of your color scheme).
Here's the short version:
.sublime-theme files change the look of the UI including the Sidebar and File Tabs.
Defining these are a tremendous pain, so save yourself a lot of time and install the Theme Menu Switcher package.
Update: Sublime Text 3 has fundamentally changed the way Color Schemes and Themes work, and has broken many of the packages that were built to handle them. I can no longer confirm the accuracy of this post, nor the functionality of the packages mentioned herein because the Sublime developers have not fully explained the changes to the customization system nor addressed how to fix them. And, at the very best, they are far more difficult to change.
At this point, this post should only be used as a reference to the differences between "themes" and "color schemes" in Sublime Text 2, as I myself have yet to successfully change a theme nor color scheme in Sublime Text 3.
I will update this post as I can dedicate more time to unraveling this Sublime Customization Quagmire.
Here's the long version:
Figure 1: The difference between "Color Schemes" and "Themes" - In the Sublime Community these terms are often confused and used interchangeably.
Changing the look of Sublime is a relatively difficult endeavor, for three main reasons:
Poorly chosen terminology
Misinformation in the Sublime Community
Installation Nightmare
Terminology
There are 2 different sections of Sublime that can be customized:
the editable region (the purple regions)
the User Interface (the green regions)
These use two different file types, and they do not accurately reflect the terminology.
The "Why?" of this decision is compatibility, and for brevity's sake I won't get into it here, but the fallout of this effort is:
The file type called tmTheme does not affect the theme, it affects the Color Scheme.
Color Schemes (highlighted in purple)
affect the look of the editable region (more specifically, the editable characters, ie what color they are when highlighted or not highlighted, etc).
relatively easy to produce
Color Schemes are Mistakenly called "Themes" all over the Sublime Community.
Themes (highlighted in green)
.sublime-theme files change the Theme, or the UI aspects of Sublime.
difficult to produce
It is difficult to find true Sublime Themes, compared to "Color Schemes"
Misinformation
Many packages claim to change the Theme, but actually change the Color Scheme. This is usually because the people producing them don't know that "Theme" specifically refers to the UI.
So another level of difficulty is finding a true "Theme" package, rather than Color Scheme.
Even some legit websites do not correctly make a distinction between the two, which adds to the challenges. For instance, colorsublime.com has a tutorial on changing the sublime "theme", but actually references the "Color Scheme" file type (.tmTheme).
Installation Pains
Themes and Color Schemes are hard to install and define. In fact, it's shocking how difficult the process is. The difficulty is further exacerbated with a fundamental change in installation and definition requirements in Sublime Text 3 that are not fully explained, which breaks many of the packages we once were reliant upon to change the Themes and Color Schemes.
It requires installing an actual Theme package (good luck finding one by browsing Packages in Package Control), defining it in settings, and then restarting Sublime. And, if you did something wrong, Sublime will simply replace your user-defined theme setting with the default. Yes, you heard me right, without notice or error message, Sublime will overwrite your theme definition.
But with Themes Menu Switcher All you need to do is go to Preferences > Theme and you'll see a list of all themes you have installed. You can also easily switch between themes without restarting Sublime.
Here's a sample from the website:
I have no affiliation with Theme Menu Switcher at all, I'm just a fan.
Again, Theme Menu Switcher does not work the same in Sublime Text 3. If you need to have a customized look, I recommend not to update to Sublime Text 3.
I first thought I was using SBT 3, then realized I was using version 2 still....
I finally got the sidebar to be dark on Windows!
I noticed that when I had my user settings theme set to "Soda Dark 3.sublime-theme" it would half-way work but you could not see the folder structure. So I decided to try the other option in the Theme - Soda folder without the "3" and it worked right away. This should work below in your Preferences > Settings - User file.
{
"theme": "Soda Dark.sublime-theme",
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme"
}
To Sidebar ceased to be white:
Download default theme because it is not in the folder sublime link here by default.sublime-Theme
In sublime 3 preferences -- > > Browse package
create a folder called "default theme" and put the downloaded file
if you installed the theme setUI, setUI file.sublime-the theme is looking for the line with comment:
"// sidebar || BG of selected files"
and under it a string
"layer0. opacity: { "target": 0.0, "speed": 50.0, "interpolation": "smoothstep" }
replaceable target": 0.0 --> target": 1.0
setting color_scheme only sets the code pallet,
setting theme sets the whole ST3 theme to the one you specify:
{
"theme": "Nil.sublime-theme",
"color_scheme": "Packages/Theme - Nil/Big Duo.tmTheme"
...
}
One simple way to do this is :
Go to Preferences -> Package Settings -> Your Theme Name -> Activation
In my case I installed Boxy Theme so the path will be
Preferences -> Package Settings -> Boxy Theme -> Activation
Then there will be a pop-up menu that will let you choose which type of the theme package you want to activate.
Use up and down arrow so choose then press enter or simply click the one you want to choose.
This is steps only applicable if the theme installed also customized the sublime text 3 sidebar.
Hope it help anyone!
The best way to enhance your experience and change the sidebar and theme of the sublime text UI is to install two packages to control it:
Install a theme that has UI inside its package (I use Agila Theme [dracula] )
Install Themes Menu Switcher package
After you've installed those two, just change the color scheme (text editor)
and then with the Theme Menu Switcher you'll switch to whatever UI you use.
Remember:
It's required that the theme you install to have UI inside the package.
Just install package Synced​Sidebar​Bg:it will change the sidebar theme based on current color scheme.But it seems that every time you change the color scheme,sidebar will be changed after you open file Preferences.sublime-settings
In Material theme 3.1.4 you can change theme like this: Tools->Metherial Theme->Material Theme Config. Its very easy.
I had the same problem.
Just set the theme in Preferences -> Settings – User by editing the json property called.
{
// Default theme
"theme": "Material-Theme.sublime-theme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme"
}
For Material theme that I use.
It worked for me.

Making TextBox text theme aware

I created a page.i want to change the background of Textbox when theme of emulator is changed to light.The letters cant be visible while changing the themes.is there any solution?
If you use the default TextBox control inside Visual Studio it is fully theme aware. If you have set the colours yourself then you need to perform the theme aware changes in code behind.
For more information, please see the following :-
http://www.developer.nokia.com/Community/Wiki/ThemeawareWindowsPhoneapplication
I assume you are referring to TextBlock rather than TextBox (as the latter automatically has style support).
You should never declare a TextBlock without a Style attribute, such as Style={StaticResource PhoneTextNormalStyle}. A full list of available styles can be found on MSDN: Theme Resources for Windows Phone
Also of relevance is: How to: Apply Theme Resources for Windows Phone
NB: Due to the way Mango was designed, backing into your application after changing themes will not apply the new theme. You will need to restart the application to see the changed theme.
Update
Based on your screenshots, you have two choices:
Reskin ("Edit Template" in Blend) each of the controls that you use to redefine a style in which the various colour-related properties are hardcoded
Use an alternate, lighter, background image when in the white theme in order to improve the contrast. I've blogged about how you can define theme-aware resources (and also mentioned it on other SO questions).
Put simply, you can either submit to the theme or force it to remain the way you want it.
We can set a theme as default to our application.When we log in our application the phone theme will be changed to its suitable theme and when we log out change back to original
here s the link .

Resources