omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Custom theme suggestion

    Pythonista
    4
    5
    1722
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Robert_Tompkins
      Robert_Tompkins last edited by

      Unless somebody knows how to correct this.
      Let me know if you can/cannot replicate this on your device.

      Problem: Debugger window font color is black, background color is automatically set to match ‘Editor > Editor Background’ color. So text is unreadable if you use a dark editor background while using Light iPhone theme.

      Solution: Add debugger window attributes to the Custom Theme configuration options.
      This would allow us to specify the color of the text and background separately from wherever they are currently pulling their attributes from.
      Debugger Background
      Debugger Text

      Anyone else have this issue? Or found a workaround?

      mikael 1 Reply Last reply Reply Quote 0
      • mikael
        mikael @Robert_Tompkins last edited by

        @Robert_Tompkins, I have the same issue, and no workaround.

        1 Reply Last reply Reply Quote 0
        • JonB
          JonB last edited by

          Probably not a great workaround, but you can change the table background, so it is lighter.

          from objc_util import *
          
          
          p=ObjCClass('PA3Debugger').sharedDebugger()
          p.overlayView().variablesTableView().backgroundColor=UIColor.colorWithHexString_('#414141')
          p.overlayView().stackTableView().backgroundColor=UIColor.colorWithHexString_('#414141')
          

          This code could go in your pythonista_startup.py file. Change the color as desired. It will stay in effect until the theme is changed.

          There is not a good way to change the actual text color, without swizzling the tableview delegate, which i would not recommend.

          1 Reply Last reply Reply Quote 0
          • cvp
            cvp last edited by

            @emma0122 said:

            pythonista_startup.py

            Do you know where and what is this file?

            1 Reply Last reply Reply Quote 0
            • JonB
              JonB last edited by

              Create a file in your
              Modules and Packages -> site-packages-3 folder, called pythonista_startup.py

              Now paste the above code in, and force quit pythonista. Now, every time you start pythonista, that code will run.

              You can add whatever other customization you need.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors