Arduino IDE更改主题、颜色背景、字体等等

那昊
2023-12-01

Arduino IDE的主题、颜色背景、字体等信息均在安装目录下->lib->theme文件夹中的theme.txt文件中设置:

原始主题:

#FUNCTIONS COLOR 			#D35400 - ORANGE			KEYWORD1
#FUNCTIONS COLOR			#D35400 - ORANGE			KEYWORD2
#STRUCTURE COLORS 			#5E6D03 - GREEN			KEYWORD3
#VARIABLES COLOR 				#00979C - BLUE				LITERAL1

#ERROR COLOR					#A61717 - RED
#COMMENTS // COLOR			#95A5A6 - LIGHT GREY
#COMMENTS /**/ COLOR		#434F54	- DARK GREY


# GUI - STATUS
status.notice.fgcolor = #002325
status.notice.bgcolor = #17A1A5
status.error.fgcolor = #FFFFFF
status.error.bgcolor = #E34C00
status.edit.fgcolor = #000000
status.edit.bgcolor = #F1B500
status.font = SansSerif,plain,12

# GUI - TABS
# settings for the tabs at the top
# (tab images are stored in the lib/theme folder)
header.bgcolor = #17A1A5
header.text.selected.color = #005B5B
header.text.unselected.color = #007e82
header.text.font = SansSerif,plain,12

# GUI - CONSOLE
console.font = Monospaced,plain,11
console.font.macosx = Monaco,plain,10
console.color = #000000
console.output.color = #eeeeee
console.error.color = #E34C00

# GUI - BUTTONS
buttons.bgcolor = #006468
buttons.status.font = SansSerif,plain,12
buttons.status.color = #ffffff

# GUI - LINESTATUS   
linestatus.color = #ffffff
linestatus.bgcolor = #006468

# EDITOR - DETAILS

# foreground and background colors
editor.fgcolor = #000000
editor.bgcolor = #ffffff

# highlight for the current line
editor.linehighlight.color=#e2e2e2
# highlight for the current line
editor.linehighlight=false

# caret blinking and caret color
editor.caret.color = #333300

# color to be used for background when 'external editor' enabled
editor.external.bgcolor = #c8d2dc

# selection color
editor.selection.color = #ffcc00

# area that's not in use by the text (replaced with tildes)
editor.invalid.style = #7e7e7e,bold

# little pooties at the end of lines that show where they finish
editor.eolmarkers = false
editor.eolmarkers.color = #999999

# bracket/brace highlighting
editor.brackethighlight = true
editor.brackethighlight.color = #006699


# TEXT - KEYWORDS

# FUNCTIONS
editor.keyword1.style = #d35400,bold
editor.data_type.style = #d35400,bold

# METHODS
editor.keyword2.style = #D35400,plain
editor.function.style = #d35400,plain

# STRUCTURES
editor.keyword3.style = #5E6D03,plain
editor.reserved_word.style = #5E6D03,plain


# TEXT - LITERALS

# constants & datatypes
editor.literal1.style = #006699,plain

# p5 built in variables: e.g. mouseX, width, pixels
editor.literal2.style = #00979C,plain
editor.variable.style = #00979C,plain
editor.reserved_word_2.style = #00979C,plain
editor.literal_boolean.style = #00979C,plain
editor.literal_char.style = #00979C,plain
editor.literal_string_double_quote.style = #00979C,plain
editor.preprocessor.style = #5E6D03,plain

# http://www.arduino.cc/
editor.url.style = #0000ff,underlined

# e.g. + - = /
editor.operator.style = #434f54,plain


# ?? maybe this is for words followed by a colon
# like in case statements or goto
editor.label.style = #7e7e7e,bold


# TEXT - COMMENTS
editor.comment1.style = #434F54,plain
editor.comment2.style = #95a5a6,plain


# LINE STATUS - editor line number status bar at the bottom of the screen
linestatus.font	   = SansSerif,plain,10
linestatus.height  = 20

深色主题1:

###############################################################################
#																			GUI																			#
###############################################################################

# BUTTONS
buttons.status.font = Monaco,plain,12
buttons.bgcolor = #191A22
buttons.status.color = #F8F8F2

# TABS
# settings for the tabs at the top
# (tab images are stored in the lib/theme folder)
header.text.font = Monaco,plain,12
header.bgcolor = #191A22
header.text.selected.color = #F8F8F2
header.text.unselected.color = #6272A4

# STATUS
status.font = Monaco,plain,12
status.notice.fgcolor = #F8F8F2
status.notice.bgcolor = #424450
status.error.fgcolor = #424450
status.error.bgcolor = #FF5555
status.edit.fgcolor = #424450
status.edit.bgcolor = #FFB86C

# CONSOLE
console.font = Monaco,plain,12
console.font.macosx = Monaco,plain,12
console.color = #191A21
console.output.color = #F8F8F2
console.error.color = #FF5555

# LINESTATUS
# editor line number status bar at the bottom of the screen
linestatus.font	= Monaco,plain,10
linestatus.height  = 20
linestatus.color = #F8F8F2
linestatus.bgcolor = #424450

# PLOTTING
# color cycle created via colorbrewer2.org
plotting.bgcolor = #F8F8F2
plotting.color = #F8F8F2
plotting.graphcolor.size = 4
plotting.graphcolor.00 = #2C7BB6
plotting.graphcolor.01 = #FFB86C
plotting.graphcolor.02 = #FF5555
plotting.graphcolor.03 = #8BE9FD

###############################################################################
#																		EDITOR																		#
###############################################################################

# FOREGROUND/BACKGROUND
editor.fgcolor = #F8F8F2
editor.bgcolor = #1f1f1f

# FONTS
editor.font = Monaco,plain,12
editor.font.macosx = Monaco,plain,12

# SELECTION
editor.selection.color = #424450

# CURRENT LINE HIGHLIGHT
editor.linehighlight.color=#44475A
# highlight for the current line
editor.linehighlight=true

# BRACKET/BRACES HIGHLIGHT
editor.brackethighlight = true
editor.brackethighlight.color = #FF5555

# CURSOR
editor.caret.color = #F8F8F0

# EXTERNAL EDITOR
editor.external.bgcolor = #21222C

# INVALID
# area that's not in use by the text (replaced with tildes)
editor.invalid.style = #FFB86C,bold

# EOLMARKERS
# little pooties at the end of lines that show where they finish
editor.eolmarkers = false
editor.eolmarkers.color = #999999

###############################################################################
#																			TEXT																		#
###############################################################################

# COMMENTS
editor.comment1.style = #00ff7f,plain
editor.comment2.style = #00ff7f,plain

# FUNCTIONS
editor.keyword1.style = #50FA7B,bold
editor.data_type.style = #8BE9FD,bold

# METHODS
editor.keyword2.style = #50FA7B,plain
editor.function.style = #FF5555,plain

# STRUCTURES
editor.keyword3.style = #FF79C6,plain
editor.reserved_word.style = #FF79C6,plain

# LITERALS
editor.literal1.style = #8BE9FD,plain
editor.literal2.style = #8BE9FD,plain
editor.variable.style = #8BE9FD,plain
editor.reserved_word_2.style = #8BE9FD,plain
editor.literal_boolean.style = #BD93F9,plain
editor.literal_char.style = #F1FA8C,plain
editor.literal_string_double_quote.style = #F1FA8C,plain
editor.preprocessor.style = #FF79C6,plain

# HYPERLINKS
editor.url.style = #2C7BB6,plain

# OPERATORS
editor.operator.style = #FF79C6,plain

# LABELS
# ?? maybe this is for words followed by a colon
# like in case statements or goto
editor.label.style = #FF79C6,bold

深色主题2:

#FUNCTIONS COLOR 			#D35400 - ORANGE			KEYWORD1
#FUNCTIONS COLOR			#D35400 - ORANGE			KEYWORD2
#STRUCTURE COLORS 			#5E6D03 - GREEN				KEYWORD3
#VARIABLES COLOR 			#00979C - BLUE				LITERAL1

#ERROR COLOR				#A61717 - RED
#COMMENTS // COLOR			#95A5A6 - LIGHT GREY
#COMMENTS /**/ COLOR		#434F54	- DARK GREY


# GUI - STATUS
status.notice.fgcolor = #FFFFFF
status.notice.bgcolor = #2c353a
status.error.fgcolor = #FFFFFF
status.error.bgcolor = #E34C00
status.edit.fgcolor = #FFFFFF
status.edit.bgcolor = #F1B500
status.font = SansSerif,plain,12

# GUI - TABS
# settings for the tabs at the top
# (tab images are stored in the lib/theme folder)
header.bgcolor = #2c353a
header.text.selected.color = #323232
header.text.unselected.color = #3C3C3C
header.text.font = SansSerif,plain,12

# GUI - CONSOLE
console.font = Monospaced,plain,11
console.font.macosx = Monaco,plain,10
console.color = #000000
console.output.color = #eeeeee
console.error.color = #E34C00

# GUI - BUTTONS
buttons.bgcolor = #56666a
buttons.status.font = SansSerif,plain,12
buttons.status.color = #ffffff

# GUI - LINESTATUS
linestatus.color = #ffffff
linestatus.bgcolor = #2c353a

# EDITOR - DETAILS

# foreground and background colors
editor.fgcolor = #ffffff
editor.bgcolor = #171e21

# highlight for the current line
editor.linehighlight.color=#2c353a
# highlight for the current line
editor.linehighlight=true

# caret blinking and caret color
editor.caret.color = #a0a0a0

# color to be used for background when 'external editor' enabled
editor.external.bgcolor = #202020

# selection color
editor.selection.color = #352062

# area that's not in use by the text (replaced with tildes)
editor.invalid.style = #7e7e7e,bold

# little pooties at the end of lines that show where they finish
editor.eolmarkers = false
editor.eolmarkers.color = #999999

# bracket/brace highlighting
editor.brackethighlight = true
editor.brackethighlight.color = #006699


# TEXT - KEYWORDS

# FUNCTIONS
editor.keyword1.style = #D35400,bold
editor.data_type.style = #D35400,bold	

# METHODS
editor.keyword2.style = #D35400,plain
editor.function.style = #D35400,plain

# STRUCTURES
editor.keyword3.style = #afda00,plain
editor.reserved_word.style = #afda00,plain


# TEXT - LITERALS

# constants & datatypes
editor.literal1.style = #006699,plain

# p5 built in variables: e.g. mouseX, width, pixels
editor.literal2.style = #4db7bb,plain
editor.variable.style = #4db7bb,plain
editor.reserved_word_2.style = #4db7bb,plain
editor.literal_boolean.style = #4db7bb,plain
editor.literal_char.style = #00ab75,plain
editor.literal_string_double_quote.style = #00ab75,plain
editor.preprocessor.style = #afda00,plain

# http://www.arduino.cc/ - GET RID OF UNDERLINE!
editor.url.style = #81A421,plain

# e.g. + - = /
editor.operator.style = #afda00,plain


# ?? maybe this is for words followed by a colon
# like in case statements or goto
editor.label.style = #ffffff,bold


# TEXT - COMMENTS
editor.comment1.style = #9a9a9a,plain
editor.comment2.style = #9a9a9a,plain


# LINE STATUS - editor line number status bar at the bottom of the screen
linestatus.font	   = SansSerif,plain,10
linestatus.height  = 20

# GUI - PLOTTING
# color cycle created via colorbrewer2.org
plotting.bgcolor = #ffffff
plotting.color = #ffffff
plotting.graphcolor.size = 4
plotting.graphcolor.00 = #2c7bb6
plotting.graphcolor.01 = #fdae61
plotting.graphcolor.02 = #d7191c
plotting.graphcolor.03 = #abd9e9
 类似资料: