aboutsummaryrefslogtreecommitdiff
path: root/doc/09_Themes.md
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-06-21 15:00:56 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-06-21 15:00:56 -0400
commit9c40b6e33237b137c46530a25a3560f4b56bc682 (patch)
tree30a7a586a3525f180aa3c9b2001154aba6a14602 /doc/09_Themes.md
parent004bb689fcd3b945f0ca724ed73f9e1215f6ec34 (diff)
downloadtextadept-9c40b6e33237b137c46530a25a3560f4b56bc682.tar.gz
textadept-9c40b6e33237b137c46530a25a3560f4b56bc682.zip
Remove theme selection since it does not persist.
Encourage calling `gui.set_theme()` from *~/.textadept/init.lua* instead.
Diffstat (limited to 'doc/09_Themes.md')
-rw-r--r--doc/09_Themes.md20
1 files changed, 12 insertions, 8 deletions
diff --git a/doc/09_Themes.md b/doc/09_Themes.md
index ccdbf85e..eb069795 100644
--- a/doc/09_Themes.md
+++ b/doc/09_Themes.md
@@ -25,16 +25,20 @@ display these standard colors.
[definitions]: api/lexer.html#Styles.and.Styling
-## Switch Themes
+## Setting Themes
-Switch between or reload themes using `Ctrl+Shift+T` (`⌘⇧T` on Mac OSX | none in
-curses). Set that theme to be the default one by putting
+Override the default theme in your [*~/.textadept/init.lua*][] using the
+[`gui.set_theme()`][] function. For example:
- gui.set_theme('name')
+ gui.set_theme('dark')
-somewhere in your [*~/.textadept/init.lua*][].
+Either restart Textadept for changes to take effect or type [`reset()`][] in the
+[command entry][].
[*~/.textadept/init.lua*]: 08_Preferences.html#User.Init
+[`gui.set_theme()`]: api/gui.html#set_theme
+[`reset()`]: api/_G.html#reset
+[command entry]: 10_Advanced.html#Command.Entry
## Customizing Themes
@@ -50,9 +54,9 @@ scratch or tweak an existing one. Creating a new one is straightforward -- all
you need to do is define a set of colors and a set of styles. Just follow the
example of existing themes. If instead you want to use an existing theme like
"light" but only change the font face and font size, you have two options: call
-[`gui.set_theme()`][] with additional parameters from your
-*~/.textadept/init.lua* or create an abbreviated *~/.textadept/themes/light.lua*
-using Lua's `dofile()` function. For example:
+[`gui.set_theme()`][] from your *~/.textadept/init.lua* with additional
+parameters, or create an abbreviated *~/.textadept/themes/light.lua* using Lua's
+`dofile()` function. For example:
-- File *~/.textadept/init.lua*
gui.set_theme('light', 'font', 'Monospace', 'fontsize', 12)