Skip to content

Commit aac486d

Browse files
authored
Merge pull request #9 from jeffeb3/dont-change-size
Trying to give users the tools to adjust their own theme.
2 parents 1785080 + 369e1f8 commit aac486d

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,36 @@ UI.
1212

1313
This plugin is very small, and just edits the css of the elements in the terminal for readability.
1414

15+
## More theming
16+
17+
If you want a different text size, or a different color, or maybe you don't want the sent on the
18+
right. You can adjust all of that to your heart's content. I recommend using
19+
[Themify](https://github.com/birkbjo/OctoPrint-Themeify) to adjust these two types of fields.
20+
21+
In Themeify, you can check "Enable customization" and then you can attach any rules to the
22+
`span.received` or `span.sent`. Those are the lines in the terminal for sent and received messages.
23+
24+
For example, if you don't want the right justified sent messages, you could do this:
25+
26+
|selector|CSS-Rule|value|
27+
|-|-|-|
28+
|span.sent|text-align|left|
29+
30+
If you want to make the text a little bigger, you might add these rules:
31+
32+
|selector|CSS-Rule|value|
33+
|-|-|-|
34+
|span.received|font-size|18px|
35+
|span.received|line-height|24px|
36+
|span.sent|font-size|18px|
37+
|span.sent|line-height|24px|
38+
39+
If you want a different color for the received messages, you could do this:
40+
41+
|selector|CSS-Rule|value|
42+
|-|-|-|
43+
|span.received|color|red|
44+
1545
Enjoy!
1646

1747
## Setup

extras/terminalmessaging.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ UI.
4242

4343
This plugin is very small, and just edits the css of the elements in the terminal for readability.
4444

45+
Take a look at more documentation [in
46+
github](https://github.com/jeffeb3/OctoPrint-TerminalMessaging/blob/master/README.md)
47+
4548
Enjoy!
4649

4750
### Special Thanks

octoprint_terminalmessaging/static/css/terminalmessaging.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
#terminal-output span.received {
66
position: relative;
7-
font-size: 18px;
8-
line-height: 24px;
97
text-align: left;
108
color: blue;
119
display: block;
@@ -20,8 +18,6 @@
2018

2119
#terminal-output span.sent {
2220
position: relative;
23-
font-size: 18px;
24-
line-height: 24px;
2521
text-align: right;
2622
color: green;
2723
display: block;

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
plugin_name = "Terminal Messaging"
1515

1616
# The plugin's version. Can be overwritten within OctoPrint's internal data via __plugin_version__ in the plugin module
17-
plugin_version = "0.0.3"
17+
plugin_version = "0.1.0"
1818

1919
# The plugin's description. Can be overwritten within OctoPrint's internal data via __plugin_description__ in the plugin
2020
# module

0 commit comments

Comments
 (0)