[英]How do I use SQL Management Studio 2017 with Dark Theme with Windows 10 High Contrast theme?
I've followed this guide to enable dark theme in VS2017 with the high contrast Windows theme: How do I use visual studio 2012 dark theme with windows 8 high contrast theme?我已按照本指南在 VS2017 中使用高对比度 Windows 主题启用深色主题: How do I use visual studio 2012 dark theme with windows 8 high contrast theme?
Works great.效果很好。
Now I'm trying with SQL Mangement Studio 2017.现在我正在尝试使用 SQL Mangement Studio 2017。
I have enabled the Dark Theme in C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\ssms.pkgundef我在 C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\ssms.pkgundef 中启用了深色主题
But it looks like it's being overruled by the High Contrast theme from Windows: https://i.stack.imgur.com/KBGE2.png但它似乎被来自 Windows 的高对比度主题所否决: https://i.stack.imgur.com/KBGE2.png
I've been digging around in RegEdit and found the themes of Sql Studio in:我一直在 RegEdit 中挖掘并在以下位置找到 Sql Studio 的主题:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\SQL Server Management Studio\14.0_Config\Themes HKEY_CURRENT_USER\SOFTWARE\Microsoft\SQL Server Management Studio\14.0_Config\Themes
https://i.stack.imgur.com/51MhW.png https://i.stack.imgur.com/51MhW.png
There are 4 themes.有4个主题。
a5c004b4-2d4b-494e-bf01-45fc492522c7 is the High Contrast theme, and its is locked a5c004b4-2d4b-494e-bf01-45fc492522c7 是高对比度主题,已锁定
I've tried the following without luck:我没有运气就尝试了以下方法:
Replace its the contents of a5c004b4-2d4b-494e-bf01-45fc492522c7 with the dark theme: 1ded0138-47ce-435e-84ef-9ec1f439b749 -> it just gets overwritten once the program starts将 a5c004b4-2d4b-494e-bf01-45fc492522c7 的内容替换为深色主题:1ded0138-47ce-435e-84ef-9ec1f439b749 -> 一旦程序启动,它就会被覆盖
Disable it just like the Dark Theme was in ssms.pkgundef -> sql studio cannot start禁用它就像黑暗主题在 ssms.pkgundef -> sql 工作室无法启动
It looks like the theme is being inject on program start, so maybe there's a way to disable that?看起来主题是在程序启动时注入的,所以也许有办法禁用它?
any suggestions:P?任何建议:P?
You can import custom fonts and color settings in SSMS. 您可以在SSMS中导入自定义字体和颜色设置。 Just follow this guide:
只需按照本指南操作:
https://blogs.sentryone.com/aaronbertrand/making-ssms-pretty-my-dark-theme/ https://blogs.sentryone.com/aaronbertrand/making-ssms-pretty-my-dark-theme/
I was able to get a nice dark theme back to SSMS 2016 while Windows 10 is set to High Contrast by simply downloading and importing the theme (vssettings) from here: https://mikesdatawork.wordpress.com/2017/07/07/dark-ssms-theme-ssms-2017/ This link also included detailed instructions on how to do this. 通过从这里下载和导入主题(vssettings),我能够将一个漂亮的黑暗主题回到SSMS 2016而Windows 10设置为高对比度: https ://mikesdatawork.wordpress.com/2017/07/07/ dark-ssms-theme-ssms-2017 /此链接还包含有关如何执行此操作的详细说明。 Hope this helps
希望这可以帮助
You will need to edit the ShellColors.pkgdef, Microsoft.VisualStudio.Platform.WindowManagement.pkgdef, and EditorColors.pkgdef files in the "\Common7\IDE\CommonExtensions\Platform" folder of the ssms installation folder.您需要编辑 ssms 安装文件夹的“\Common7\IDE\CommonExtensions\Platform”文件夹中的 ShellColors.pkgdef、Microsoft.VisualStudio.Platform.WindowManagement.pkgdef 和 EditorColors.pkgdef 文件。 You can copy the settings for the dark theme over to the high contrast settings.
您可以将深色主题的设置复制到高对比度设置中。 These files will most likely get overridden every time you update ssms, so be aware that you will need to do this every time you update or will need a script to update the files.
每次更新 ssms 时,这些文件很可能会被覆盖,因此请注意,每次更新时都需要这样做,或者需要脚本来更新文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.