Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
1.6 Editor Themes ( I hate myself for mentioning it, but I will)
-
@omz
Given some of the complex issues you must be dealing with. I am sure this is tick on the back side of a Camels as*.But I will still post it.
In 1.5, I used the theme that is almost identical to the named 'Editorial' theme in 1.6
The 'editorial' theme in 1.6 uses a chocolate brown type background color, instead of black.
Whilst the syntax colors are all the same, they are not really. The chocolate color gives them such a different contrast.I am guessing your themes are JSON files somewhere. Is there some small hack with code or by hand to go in and change that value?
Look, if you don't even answer, it's ok. There are 1 billion small things to get done, I am sure.
It's ok, I have accepted a long time ago, I am not going to heaven or any other nice place in the after life :)
-
Enjoy! → Pythonista Theme Editor.py (Gist)
...but don't blame me if you somehow end up with white text on a white background. ;)
-
And here is your complimentary commented theme JSON template.
{ "name": "Default Commented", "name___comment": "The theme's display name in the Themes menu.", "library_background": "#fafafa", "library_background___comment": "The background color of the Script Library.", "thumbnail_border": "#d1d1d1", "thumbnail_border___comment": "The color of the borders between files in the Script Library.", "default_text": "#333333", "default_text___comment": "The default color of interface text.", "tint": "#5794b0", "tint___comment": "The tint color of interface buttons.", "text_selection_tint": "#5794b0", "text_selection_tint___comment": "The tint color of the text selection and cursor.", "bar_background": "#ffffff", "bar_background___comment": "The background color of the toolbar and the active tab.", "tab_background": "#f0f0f0", "tab_background___comment": "The background color of inactive tabs.", "tab_title": "#000000", "tab_title___comment": "The color of the tab title text.", "separator_line": "#b3b3b3", "separator_line___comment": "The color of the separator line between toolbar/tabs and editor.", "background": "#ffffff", "background___comment": "The default background color of the editor.", "gutter_background": "#fafafa", "gutter_background___comment": "The background color of the line number column on the left side of the editor.", "gutter_border": "#dddddd", "gutter_border___comment": "The color of the border that separates the gutter from the editor.", "line_number": "#a5a5a5", "line_number___comment": "The color of the line numbers in the gutter.", "dark_keyboard": false, "dark_keyboard___comment": "Whether to use a dark onscreen keyboard.", "font-size": 15.0, "font-size___comment": "The default editor and console font size.", "font-family": "Menlo-Regular", "font-family___comment": "The default editor and console font family.", "scopes___comment": "Formatting for various kinds of text in the editor. Formatting options are similar to CSS styles.", "scopes": { "default___comment": "Default text, for plain text files or text with no special meaning.", "default": { "color": "#000000" }, "string___comment": "String literals.", "string": { "color": "#ce5149" }, "docstring___comment": "Python multiline string literals.", "docstring": { "color": "#447919", "font-style": "italic" }, "number___comment": "Numbers.", "number": { "color": "#2682d5" }, "keyword___comment": "Language keywords.", "keyword": { "color": "#a4258f" }, "module___comment": "Python module names as part of import statements.", "module": { "color": "#6e41a8" }, "function___comment": "Function names as part of a function call.", "function": { "color": "#21767e" }, "builtinfunction___comment": "Built-in function names as part of a function call.", "builtinfunction": { "color": "#21767e" }, "functiondef___comment": "Function names as part of a function definition.", "functiondef": { "color": "#21767e", "font-style": "bold" }, "classdef___comment": "Class names as part of a class definition.", "classdef": { "color": "#21767e", "font-style": "bold" }, "class___comment": "Class names as part of a class instantiation.", "class": { "color": "#21767e" }, "comment___comment": "Comments.", "comment": { "color": "#808080", "font-style": "italic" }, "escape___comment": "Should probably be for escaped characters in string literals, but doesn't seem to do anything.", "escape": { "background-color": "#ebf1d8" }, "decorator___comment": "Function or class decoration statements.", "decorator": { "color": "#99684c" }, "formatting___comment": "Markdown formatting characters.", "formatting": { "color": "#80808080" }, "codeblock-start___comment": "GitHub-style syntax highlighting instructions after code block start.", "codeblock-start": { "color": "#80808080" }, "bold___comment": "Bold text.", "bold": { "font-style": "bold" }, "italic___comment": "Italic text.", "italic": { "font-style": "italic" }, "bold-italic___comment": "Bold and italic text.", "bold-italic": { "font-style": "bold-italic" }, "heading-1___comment": "Level 1 headings.", "heading-1": { "font-style": "bold" }, "heading-2___comment": "Level 2 headings.", "heading-2": { "font-style": "bold" }, "heading-3___comment": "Level 3 headings.", "heading-3": { "font-style": "bold" }, "link___comment": "Link titles.", "link": { "text-decoration": "underline" }, "code___comment": "Inline code sequences.", "code": { "background-color": "#80808020", "corner-radius": 2.0 }, "project___comment": "Taskpaper project.", "project": { "font-style": "bold" }, "checkbox___comment": "Taskpaper checkbox.", "checkbox": { "checkbox": true }, "checkbox-done___comment": "Checked Taskpaper checkbox.", "checkbox-done": { "checkbox": true, "done": true }, "task-done___comment": "Finished Taskpaper task.", "task-done": { "text-decoration": "strikeout", "color": "#66666680" }, "tag___comment": "Is this Taskpaper or HTML or what now?", "tag": { "text-decoration": "none" } } }
-
Btw, after you've created a custom theme with the script above, it will also show up in the regular settings, so you can switch back to one of the built-in themes without losing the one you created.
The script always edits the same custom theme, but it's generally possible to have more than one – you can probably figure out how to do that yourself.
-
Thanks guys. It's so nice, to be able to change it. You may not agree with my ascetics, but it works for my eyes :)
Solid black background, no bold for function or class defs, and a purple for DOC strings ;)Owe you guys a few drinks!
-
Looks like inline dropbox pics may have changed here
-
Lol, I can do my own comment removal now, I can just have a theme with black comments :) not as stupid as it sounds
-
@dgelessus Wow, that was quick! :)
-
s/ascetics/aesthetics/ unless you really DID mean "ascetics". :-)
-
With a few less black label and soda's I might have nailed the spelling, then maybe not :) The main thing is I got it working. Small thing, but gratifying for me.
-
Even with the black label, I was able to get my 'No Comment' theme as well as my editorial modified theme. It was not pretty what I did, but it worked.
-
@omz Nah, I had this lying around for a while. I was going to write some kind of utility script to "install" themes and I would have included the template with that. Now you've done that for me, so there's no reason to keep it for myself any longer.
:)
-
EDIT: Tweaked some values to make built-in functions less intensely colored, and a few other minor changes.
I've made one based on the Pacific Dark theme for Sublime Text, which I really like.
Based on:
Mine:
(By the way, that screenshot teases a project I'll release soon)
I think it was fairly successful. I've been using Oceanic up until now, this is a similar theme with a similar name that I like just a little bit more. Feel free to use it, code is below:
{ "name": "Pacific Dark", "library_background": "#313b44", "thumbnail_border": "#313b44", "default_text": "#f8f8f2", "dark_keyboard": true, "tint": "#78aab5", "library_tint": "#78aab5", "text_selection_tint": "#42505a", "bar_background": "#354552", "tab_background": "#313b44", "tab_title": "#78aab5", "separator_line": "#313b44", "background": "#354552", "gutter_background": "#354552", "gutter_border": "#354552", "line_number": "#4f6c8a", "font-size": 15.0, "font-family": "Menlo-Regular", "interstitial": "#1c2933", "scopes": { "default": { "color": "#ffffff", }, "string": { "color": "#ffdb8b", }, "docstring": { "color": "#587585", "font-style": "italic" }, "number": { "color": "#8086d7", }, "keyword": { "color": "#ff8b69", }, "module": { "color": "#ffdb8b", }, "function": { "color": "#ffffff", }, "builtinfunction": { "color": "#6baaaa", }, "functiondef": { "color": "#89ca90", "font-style": "bold" }, "classdef": { "color": "#ffffff", "font-style": "italic" }, "class": { "color": "#ffffff" }, "comment": { "color": "#587585", "font-style": "italic" }, "formatting": { "color": "#80808080" }, "codeblock-start": { "color": "#80808080" }, "bold": { "font-style": "bold" }, "italic": { "font-style": "italic" }, "bold-italic": { "font-style": "bold-italic" }, "heading-1": { "font-style": "bold" }, "heading-2": { "font-style": "bold" }, "heading-3": { "font-style": "bold" }, "link": { "text-decoration": "underline" }, "code": { "background-color": "#80808040", "corner-radius": 2.0 }, "project": { "font-style": "bold" }, "checkbox": { "checkbox": true }, "checkbox-done": { "checkbox": true, "done": true }, "task-done": { "text-decoration": "strikeout", "color": "#99999980" }, "tag": { "text-decoration": "none" } } }
-
This still works flawlessly in Pythonista 3
-
This post is deleted! -
@Phuket2
You control your destiny. Ask Jesus for forgiveness. He forgives all sin we confess. Believe in him. When Jesus forgives us, anything we have done in the past is gone and forgotten. Only our own guilt will prevent us from enjoying everything He has given us.
"Jesus replied, 'Very truly I tell you, no one can see the kingdom of God unless they are born again.'"-NIV Bible John 3:3.
"For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life. For God did not send his Son into the world to condemn the world, but to save the world through him. Whoever believes in him is not condemned, but whoever does not believe stands condemned already because they have not believed in the name of God’s one and Son."-NIV Bible, John 3:16-18.
Thanks for the help.