반응형
해당 글에서는 MySQLWorkbench 툴에서 드라큘라/다크/일반 테마를 적용해 보는 방법에 대해 알아봅니다.
1) 드라큘라 테마 적용하기
1. 사이트에 접속하여 ZIP 파일을 받아줍니다.
2. MySQLWorkbench가 설치된 경로로 접근하여 code_editor.xml 파일을 엽니다
# workbench 설치 경로 접근
$ cd /Applications/MySQLWorkbench.app/Contents/Resources/data
# code_editor.xml 파일을 엽니다.
$ open -a TextEdit code_editor.xml
3. 압축을 풀고 디렉터리 내에 copy.xml 파일 내의 코드를 복사합니다.
💡 저는 Sublime Text 툴을 이용하여서 xml 파일을 열었습니다.
4. 열려져 있는 editor 내에서 <language name="SCLEX_MYSQL"> 하단 부분을 지웁니다
💡 아래와 같은 상태가 되었습니다.
5. 지워둔 영역 안에 복사한 정보를 붙여 넣습니다.
6. MySQLWorkbench를 재실행하면 아래와 같이 변경됨을 확인할 수 있습니다
2) 다크모드 적용하기
1. 다크테마를 제공해 주는 Github를 접근합니다
2. workbench가 설치된 경로로 접근하여 code_editor.xml 파일을 엽니다
# workbench 설치 경로 접근
$ cd /Applications/MySQLWorkbench.app/Contents/Resources/data
# code_editor.xml 파일을 엽니다.
$ open -a TextEdit code_editor.xml
3. 위와 동일하게 <language name="SCLEX_MYSQL"> 내에 해당 부분을 교체해 줍니다.
💡 위와 동일하게 <language name="SCLEX_MYSQL"> 내에 해당 부분을 교체해 줍니다.
- 해당 부분은 위에 Github 내에 있는 파일 일부입니다.
<style id="0" fore-color-light="#abb2bf" fore-color-dark="#abb2bf" back-color-light="#232729" /> <!-- SCE_MYSQL_DEFAULT -->
<style id="1" fore-color-light="#5c6370" fore-color-dark="#5c6370" /> <!-- SCE_MYSQL_COMMENT -->
<style id="2" fore-color-light="#5c6370" fore-color-dark="#5c6370" /> <!-- SCE_MYSQL_COMMENTLINE -->
<style id="21" back-color-light="#F0F0F0" back-color-dark="#232729" /> <!-- SCE_MYSQL_HIDDENCOMMAND -->
<style id="3" fore-color-light="#e06c75" fore-color-dark="#e06c75" /> <!-- SCE_MYSQL_VARIABLE -->
<style id="4" fore-color-light="#e06c75" fore-color-dark="#e06c75" /> <!-- SCE_MYSQL_SYSTEMVARIABLE -->
<style id="5" fore-color-light="#e06c75" fore-color-dark="#e06c75" /> <!-- SCE_MYSQL_KNOWNSYSTEMVARIABLE -->
<style id="6" fore-color-light="#d19a66" fore-color-dark="#d19a66" /> <!-- SCE_MYSQL_NUMBER -->
<style id="12" fore-color-light="#98c379" fore-color-dark="#98c379" /> <!-- SCE_MYSQL_SQSTRING -->
<style id="13" fore-color-light="#98c379" fore-color-dark="#98c379" /> <!-- SCE_MYSQL_DQSTRING -->
<style id="7" bold="Yes" fore-color-light="#56b6c2" /> <!-- SCE_MYSQL_MAJORKEYWORD -->
<style id="8" bold="Yes" fore-color-light="#61afef" /> <!-- SCE_MYSQL_KEYWORD -->
<style id="15" fore-color-light="#c678dd" fore-color-dark="#c678dd" /> <!-- SCE_MYSQL_FUNCTION -->
<style id="10" fore-color-light="#c678dd" fore-color-dark="#c678dd" /> <!-- SCE_MYSQL_PROCEDUREKEYWORD -->
<style id="14" bold="Yes" /> <!-- SCE_MYSQL_OPERATOR -->
<style id="16" fore-color-light="#eaeaea" fore-color-dark="#eaeaea" /> <!-- SCE_MYSQL_IDENTIFIER -->
<style id="17" fore-color-light="#eaeaea" fore-color-dark="#eaeaea" /> <!-- SCE_MYSQL_QUOTEDIDENTIFIER -->
<style id="22" fore-color-light="#ABB2BF" back-color-light="#232729" fore-color-dark="#ABB2BF" back-color-dark="#232729" bold="Yes" /> <!-- SCE_MYSQL_PLACEHOLDER -->
<style id="18" fore-color-light="#98c379" fore-color-dark="#98c379" bold="yes"/> <!-- SCE_MYSQL_USER1 -->
<style id="32" fore-color-light="#ABB2BF" back-color-light="#232729" fore-color-dark="#ABB2BF" back-color-dark="#232729" /> <!-- OVERALL BACKGROUND -->
<style id="33" fore-color-light="#ABB2BF" back-color-light="#21252b" fore-color-dark="#ABB2BF" back-color-dark="#21252b" /> <!-- LINE NUMBER BACKGROUND -->
<!-- All styles again in their variant in a hidden command (with a 0x40 offset). -->
<style id="65" fore-color-light="#5c6370" back-color-light="#232729" fore-color-dark="#5c6370" back-color-dark="#232729" /> <!-- SCE_MYSQL_COMMENT -->
<style id="66" fore-color-light="#5c6370" back-color-light="#232729" fore-color-dark="#5c6370" back-color-dark="#232729" /> <!-- SCE_MYSQL_COMMENTLINE -->
<style id="67" fore-color-light="#e06c75" back-color-light="#232729" fore-color-dark="#e06c75" back-color-dark="#232729" /> <!-- SCE_MYSQL_VARIABLE -->
<style id="68" fore-color-light="#e06c75" back-color-light="#232729" fore-color-dark="#e06c75" back-color-dark="#232729" /> <!-- SCE_MYSQL_SYSTEMVARIABLE -->
<style id="69" fore-color-light="#e06c75" back-color-light="#232729" fore-color-dark="#e06c75" back-color-dark="#232729" /> <!-- SCE_MYSQL_KNOWNSYSTEMVARIABLE -->
<style id="70" fore-color-light="#d19a66" back-color-light="#232729" fore-color-dark="#d19a66" back-color-dark="#232729" /> <!-- SCE_MYSQL_NUMBER -->
<style id="76" fore-color-light="#98c379" back-color-light="#232729" fore-color-dark="#98c379" back-color-dark="#232729" /> <!-- SCE_MYSQL_SQSTRING -->
<style id="77" fore-color-light="#98c379" back-color-light="#232729" fore-color-dark="#98c379" back-color-dark="#232729" /> <!-- SCE_MYSQL_DQSTRING -->
<style id="71" back-color-light="#232729" back-color-dark="#232729" bold="Yes" /> <!-- SCE_MYSQL_MAJORKEYWORD -->
<style id="72" back-color-light="#232729" back-color-dark="#232729" bold="Yes"/> <!-- SCE_MYSQL_KEYWORD -->
<style id="79" fore-color-light="#c678dd" back-color-light="#232729" fore-color-dark="#c678dd" back-color-dark="#232729" /> <!-- SCE_MYSQL_FUNCTION -->
<style id="74" fore-color-light="#c678dd" back-color-light="#232729" fore-color-dark="#c678dd" back-color-dark="#232729" /> <!-- SCE_MYSQL_PROCEDUREKEYWORD -->
<style id="78" back-color-light="#232729" back-color-dark="#232729" bold="Yes" /> <!-- SCE_MYSQL_OPERATOR -->
<style id="80" fore-color-light="#eaeaea" back-color-light="#232729" fore-color-dark="#eaeaea" back-color-dark="#232729" /> <!-- SCE_MYSQL_IDENTIFIER -->
<style id="81" fore-color-light="#eaeaea" back-color-light="#232729" fore-color-dark="#eaeaea" back-color-dark="#232729" /> <!-- SCE_MYSQL_QUOTEDIDENTIFIER -->
<style id="86" fore-color-light="#ABB2BF" back-color-light="#232729" fore-color-dark="#ABB2BF" back-color-dark="#232729" bold="Yes" /> <!-- SCE_MYSQL_PLACEHOLDER -->
<style id="82" fore-color-light="#98c379" back-color-light="#232729" fore-color-dark="#98c379" back-color-dark="#232729" bold="yes"/> <!-- SCE_MYSQL_USER1 -->
4. MySQLWorkbench를 재실행하면 아래와 같이 변경됨을 확인할 수 있습니다
3) 일반 모드로 돌아가기
1. workbench가 설치된 경로로 접근하여 code_editor.xml 파일을 엽니다.
# workbench 설치 경로 접근
$ cd /Applications/MySQLWorkbench.app/Contents/Resources/data
# code_editor.xml 파일을 엽니다.
$ open -a TextEdit code_editor.xml
2. 위와 동일하게 <language name="SCLEX_MYSQL"> 내에 해당 부분을 교체해 줍니다.
<!-- Lexer properties -->
<property name="fold" value="1" />
<property name="fold.compact" value="0" />
<property name="fold.comment" value="1" />
<!-- Editor settings -->
<setting name="usetabs" value="1" />
<setting name="tabwidth" value="4" />
<setting name="indentation" value="4" />
<!-- Keep in mind to use the same list names as defined in the lexers (e.g. LexMySQL.cpp). -->
<keywords name="Major Keywords">
<!-- Keywords that can start a statement. No longer used. -->
</keywords>
<keywords name="Keywords">
<!-- Normal keywords. No longer kept here but come from the keywords_list.h file provided by the server itself. -->
</keywords>
<keywords name="Procedure keywords">
begin end comment
</keywords>
<keywords name="User Keywords 1">
delimiter
</keywords>
<!-- These two lists are not used for syntax highlighting but assemble keywords from the other lists that serve a special purpose. -->
<keywords name="User Keywords 2"> <!-- Keywords that are allowed at the start of an expression. -->
binary case cast convert exists interval match not row
</keywords>
<keywords name="User Keywords 3"> <!-- Like user 2 but those that can appear between two expressions. -->
all and any as between escape false in is like or regexp sounds true unknown xor
</keywords>
<style id="0" fore-color-light="#284444" fore-color-dark="#808a8c" /> <!-- SCE_MYSQL_DEFAULT -->
<style id="1" fore-color-light="#0987cb" fore-color-dark="#0a99e5" /> <!-- SCE_MYSQL_COMMENT -->
<style id="2" fore-color-light="#0987cb" fore-color-dark="#0a99e5" /> <!-- SCE_MYSQL_COMMENTLINE -->
<style id="21" back-color-light="#F0F0F0" back-color-dark="#404040" /> <!-- SCE_MYSQL_HIDDENCOMMAND -->
<style id="3" fore-color-light="#63bf8d" fore-color-dark="#63bf8d" /> <!-- SCE_MYSQL_VARIABLE -->
<style id="4" fore-color-light="#45aa73" fore-color-dark="#45aa73" /> <!-- SCE_MYSQL_SYSTEMVARIABLE -->
<style id="5" fore-color-light="#45aa73" fore-color-dark="#45aa73" /> <!-- SCE_MYSQL_KNOWNSYSTEMVARIABLE -->
<style id="6" fore-color-light="#cc6c00" fore-color-dark="#e57a00" /> <!-- SCE_MYSQL_NUMBER -->
<style id="12" fore-color-light="#dd7a00" fore-color-dark="#f28600" /> <!-- SCE_MYSQL_SQSTRING -->
<style id="13" fore-color-light="#dd7a00" fore-color-dark="#f28600" /> <!-- SCE_MYSQL_DQSTRING -->
<style id="7" bold="Yes" fore-color-light="#007FBF" /> <!-- SCE_MYSQL_MAJORKEYWORD -->
<style id="8" bold="Yes" fore-color-light="#007FBF" /> <!-- SCE_MYSQL_KEYWORD -->
<style id="15" fore-color-light="#7d7d63" fore-color-dark="#7db27d" /> <!-- SCE_MYSQL_FUNCTION -->
<style id="10" fore-color-light="#7d7d63" fore-color-dark="#7db27d" /> <!-- SCE_MYSQL_PROCEDUREKEYWORD -->
<style id="14" bold="Yes" /> <!-- SCE_MYSQL_OPERATOR -->
<style id="16" fore-color-light="#000000" fore-color-dark="#FFFFFF" /> <!-- SCE_MYSQL_IDENTIFIER -->
<style id="17" fore-color-light="#993a3e" fore-color-dark="#e5454c" /> <!-- SCE_MYSQL_QUOTEDIDENTIFIER -->
<style id="22" fore-color-light="#FFFFFF" back-color-light="#A0A0A0" fore-color-dark="#000000" back-color-dark="#404040" bold="Yes" /> <!-- SCE_MYSQL_PLACEHOLDER -->
<style id="18" fore-color-light="#007F00" fore-color-dark="#00b200" bold="yes"/> <!-- SCE_MYSQL_USER1 -->
<!-- All styles again in their variant in a hidden command (with a 0x40 offset). -->
<style id="65" fore-color-light="#0987cb" back-color-light="#F0F0F0" fore-color-dark="#0a99e5" back-color-dark="#404040" /> <!-- SCE_MYSQL_COMMENT -->
<style id="66" fore-color-light="#0987cb" back-color-light="#F0F0F0" fore-color-dark="#0a99e5" back-color-dark="#404040" /> <!-- SCE_MYSQL_COMMENTLINE -->
<style id="67" fore-color-light="#63bf8d" back-color-light="#F0F0F0" fore-color-dark="#63bf8d" back-color-dark="#404040" /> <!-- SCE_MYSQL_VARIABLE -->
<style id="68" fore-color-light="#45aa73" back-color-light="#F0F0F0" fore-color-dark="#45aa73" back-color-dark="#404040" /> <!-- SCE_MYSQL_SYSTEMVARIABLE -->
<style id="69" fore-color-light="#45aa73" back-color-light="#F0F0F0" fore-color-dark="#45aa73" back-color-dark="#404040" /> <!-- SCE_MYSQL_KNOWNSYSTEMVARIABLE -->
<style id="70" fore-color-light="#cc6c00" back-color-light="#F0F0F0" fore-color-dark="#e57a00" back-color-dark="#404040" /> <!-- SCE_MYSQL_NUMBER -->
<style id="76" fore-color-light="#dd7a00" back-color-light="#F0F0F0" fore-color-dark="#f28600" back-color-dark="#404040" /> <!-- SCE_MYSQL_SQSTRING -->
<style id="77" fore-color-light="#dd7a00" back-color-light="#F0F0F0" fore-color-dark="#f28600" back-color-dark="#404040" /> <!-- SCE_MYSQL_DQSTRING -->
<style id="71" back-color-light="#F0F0F0" back-color-dark="#404040" bold="Yes" /> <!-- SCE_MYSQL_MAJORKEYWORD -->
<style id="72" back-color-light="#F0F0F0" back-color-dark="#404040" bold="Yes"/> <!-- SCE_MYSQL_KEYWORD -->
<style id="79" fore-color-light="#7d7d63" back-color-light="#F0F0F0" fore-color-dark="#7db27d" back-color-dark="#404040" /> <!-- SCE_MYSQL_FUNCTION -->
<style id="74" fore-color-light="#7d7d63" back-color-light="#F0F0F0" fore-color-dark="#7db27d" back-color-dark="#404040" /> <!-- SCE_MYSQL_PROCEDUREKEYWORD -->
<style id="78" back-color-light="#F0F0F0" back-color-dark="#284444" bold="Yes" /> <!-- SCE_MYSQL_OPERATOR -->
<style id="80" fore-color-light="#000000" back-color-light="#F0F0F0" fore-color-dark="#FFFFFF" back-color-dark="#404040" /> <!-- SCE_MYSQL_IDENTIFIER -->
<style id="81" fore-color-light="#993a3e" back-color-light="#F0F0F0" fore-color-dark="#e5454c" back-color-dark="#404040" /> <!-- SCE_MYSQL_QUOTEDIDENTIFIER -->
<style id="86" fore-color-light="#FFFFFF" back-color-light="#A0A0A0" fore-color-dark="#284444" back-color-dark="#404040" bold="Yes" /> <!-- SCE_MYSQL_PLACEHOLDER -->
<style id="82" fore-color-light="#007F00" back-color-light="#F0F0F0" fore-color-dark="#00b200" back-color-dark="#404040" bold="yes"/> <!-- SCE_MYSQL_USER1 -->
<!-- Various other styles -->
<style id="34" back-color-light="#ffee55" back-color-dark="#ffee55" /> <!-- STYLE_BRACELIGHT -->
<style id="35" back-color-light="#ff7855" back-color-dark="#ff7855" /> <!-- STYLE_BRACELBAD -->
3. MySQLWorkbench를 재실행하면 아래와 같이 변경됨을 확인할 수 있습니다
오늘도 감사합니다. 😀
반응형
'개발 Tip > 기타' 카테고리의 다른 글
[Sublime Text] JSON 자동 정렬 단축키 적용하기 : Pretty JSON (0) | 2024.07.26 |
---|---|
[단축키] 키크론 K8 Pro 단축키 (4) | 2023.04.08 |
[단축키] 콕스 엔데버 키보드 단축키 (0) | 2023.04.08 |
[Sourcetree] 자동 꺼짐 증상 - Sourcetree 응용 프로그램이 예기치 않게 종료되었습니다 : MacOS (0) | 2023.01.08 |