Make the theme of Pythonista 3 like Monokai (how to make your own theme)

I tried to use Monokai with Pythonista 3, but I couldn't find it, so I made it myself.

Location of theme settings

  1. Press the lower right gear on the left sidebar to open Settings.
  2. Themes opens from the GENERAL Theme at the top.
  3. Press + in the upper right to open the Edit Theme, where you can freely change the current color scheme.

Edit Theme

--Colors can be selected from the color palette, and you can enter the color code directly by pressing the color sample on the upper left. --Syntax highlighting allows you to select bold, italic, or underline. --You can generate a URL Scheme from the icon to the left of Done in the upper right.

Tried to make it

You can install from here.

You can see the URL Scheme itself here.
pythonista3://?action=add-theme&theme-data=eNqdVktz4jAMvvMrmOyVzCSBktBbd4Fb97Cz94yTiOCNYzGOMy3b6X9fvyiY8mg2OmHps6RPksXbaDwOJLzKvAMGpaTIc0m5DMaP42BtvmBibEiRF6RsaoE9r4w6WWmx6oqIJm9gXyARRitFDx9ASSUDg_lhPothlEPO-7YAYXTZahFlTteVuINOH7-pn9oBlp0UlNfHM3VaIkMLXs2X39NZYBTvE4spGem6K_bfNps0i1MfoCJqPHvNTFhBiYJoagxSpQ9Cx37mDCvwsEe2whO3WaRlFgWTY0yCgwgFqWhvok28exWpL2g5vZDGepHM08SPZCfwjyqlh9ggl2En964MBbLKB21B-ed1GA-DGYor2FwJ72m-SlyLDOWTSsJoeSsaZ-GhNihaIuX1PnEFyCIfpzML77s8NfuE_z_CpwMJ30LZFPjqp3dyqAfvIiKskMNN2EeZDpaf7pKkvjsfHM9LeZzxSy2yymL1yPhV7Hl5uO9S09t36SyyrrmQ4bHuC_Nl0e1m1G9MA9hL_3ZnheJ2n18scDKswIfc7w6V3389Zarr7xA3ny8XqzPiWqx6BgOYLrFtgcsriPQhjR9OJv4LMzv8XVdPbcGwbNTFRMhhk654JT2TX0l45FDqKRfny2-60GKXlc2R_jUpxpFdex9LdLlI4_WJ4Ya0lO2N7hk4w_AX1D0jwi1SG16um9MRoCVwcfgLOE2yJLGqupcSVJRqVbh1On3S4tYp7Ijp39w8tA6s5LCJC0HE_laOcquGmBPKTl3M4tlslvkBnIW41GItOGmt62fk2BA6_o0tCoEv45-03kprpGgD0ak_DJQwW8aETKPpPBi9_wPDjTRK

The UI color scheme uses the standard Tomorrow Night, but I changed the Tint Color from # f99157 to # fd971f to match Monokai. (Almost unchanged)

Since there are not so many syntax highlight categories, it cannot be faithfully reproduced. For example

--Only Keyword specified # f92672, but ʻimport def` `for` ʻin print` etc. have been changed at once. --The operator cannot be highlighted.

Other self-made themes

There were only three in my research, so I will introduce all of them. Please let me know if there is anything else.

theme Description
WWDC '16 Pythonista developer omz:Created by software
Dracula Created by Zeno Rocha, the author of the original Dracula
Atom-inspired At the bottom of the postTheme.Is a link

bonus

How to paste the URL scheme

If you paste the link normally, it will be deleted on the Qiita side, so I pasted the one compressed with TinyURL.

Change the color of the Pythonista icon

You can change the color of the icon from App Icon ... at the bottom right of Themes (theme selection screen).

Sample code

I tried copying the code displayed on the screen on the setting screen. Copying and pasting into other editors may help you create your own theme.

colortest.py


#Themes (theme selection screen)

from random import sample

def main():
  # Request a name and suffle the letters:
  name = input('Enter your name: ')
  for i in range(100):
    print(''.join(sample(name), len(name)))

if __name__ == '__main__':
  main()

#Edit Theme (color scheme setting screen)

#coding: utf-8
from random import shuffle

def main():
  '''Shuffle the entered name 10 times'''
  name = input('Name: ')
  chars = list(name)
  for i in range(10):
    shuffle(chars)
    print(''.join(chars))

#Added because there were no classes and decorators

@hogehoge
class Foo():
  def __init__(self, bar):
    self.bar = bar

Recommended Posts

Make the theme of Pythonista 3 like Monokai (how to make your own theme)
(Note) How to pass the path of your own module
How to create your own Transform
How to make your own domain site with heroku (free plan)
How to check the version of Django
How to install your own (root) CA
I tried how to improve the accuracy of my own Neural Network
Try to make your own AWS-SDK with bash
How to calculate the volatility of a brand
How to find the area of the Voronoi diagram
How to define your own target in Sage
How to make VS Code aware of the venv environment and its benefits
How to make a Raspberry Pi that speaks the tweets of the specified user
How to make the font width of jupyter notebook put in pyenv equal width
How to know the port number of the xinetd service
I tried to make something like a chatbot with the Seq2Seq model of TensorFlow
How to get the number of digits in Python
How to visualize the decision tree model of scikit-learn
[Blender] How to dynamically set the selection of EnumProperty
The road to Pythonista
Basics of PyTorch (2) -How to make a neural network-
[Python] Summary of how to specify the color of the figure
How to hit the document of Magic Function (Line Magic)
How to access the global variable of the imported module
The world's most easy-to-understand explanation of how to make a LINE BOT (1) [Account preparation]
How to change the generated image of GAN to a high quality one to your liking
[Selenium] How to specify the relative path of chromedriver?
The world's most easy-to-understand explanation of how to make LINE BOT (3) [Linkage with server with Git]
How to make an interactive LINE BOT 004 (answer the closing date of a listed company)
How to increase the processing speed of vertex position acquisition
[Ubuntu] How to delete the entire contents of a directory
How to find the optimal number of clusters in k-means
[Ansible] How to call variables when creating your own module
[Python] How to make a list of character strings character by character
How to test the attributes added by add_request_method of pyramid
Make the display of Python module exceptions easier to understand
Let's make the analysis of the Titanic sinking data like that
Run the intellisense of your own python library with VScode.
How to use pyenv and pyenv-virtualenv in your own way
How to calculate the amount of calculation learned from ABC134-D
How to log in automatically like 1Password from the CLI
Try to improve the accuracy of Twitter like number estimation
How to summarize the results of FreeSurfer ~ aparc, aseg, wmparc ~
How to run the Export function of GCP Datastore automatically
How to increase the number of machine learning dataset images
How to see the contents of the Jupyter notebook ipynb file
How to find the scaling factor of a biorthogonal wavelet
How to get an overview of your data in Pandas
Try HeloWorld in your own language (with How to & code)
How to connect the contents of a list into a string
Change the theme of Jupyter
How to use the decorator
How to increase the axis
How to start the program
How to handle multiple versions of CUDA in the same environment
How to determine the existence of a selenium element in Python
How to change the log level of Azure SDK for Python
How to implement Java code in the background of RedHat (LinuxONE)
How to know the internal structure of an object in Python
How to get the ID of Type2Tag NXP NTAG213 with nfcpy
How to check the memory size of a variable in Python