[New Designer] feature requests

Admin note: Moved to Feature Requests

I love that the new designer makes it easier to edit on small screens like my laptop. Now, I can focus on the stuff I currently work on and move everything else out of the way. :grinning:

There are some things that I noticed, though:

  1. I like to use the dark theme (reminds me of VS Code). However, I find some of the menu text really hard to read. It could use more contrast.

  2. The list of timers is not that important that I need to see it constantly. The timers could appear in the component tree, instead. They take away valuable space on the screen.

  3. I am trying to read a text file using request from anvil.http like this:

response = request("./_/theme/localization/index.lst")

However, the designer output says “TypeError: isinstance() arg 2 must be a class, type, or tuple of classes and types”.

1 Like

For the colours (item 1 above), there is a workaround from this post using the Stylus extension :

Works very well, but does require a bit of digging into the CSS of the IDE.

For the toolbox properties, I used this in Stylus. You could probably fine tune it a bit better :

.grow, .pb-6 {
    color: #cccccc;
}

and mine has gone from this :

image

to this :

image

1 Like

Thank you for your answers. Yesterday, I noticed that it got fixed and works out of the box now.

Now, it is perfectly readable, again. Thank you!
I love the new designer. :heart_eyes:

2 Likes

Are you still wanting help about your 3rd issue? I’m not sure but I don’t think the request method is intended for reading a text file stored on your own website. There is probably a better way to do that.

Thank you for asking. However, I already found a solution by using Javascript’s fetch mechanism:

from anvil.js.window import fetch
response = fetch(url)
if response.status == 200:
    return str(response.text())

This works fine with the new designer.

2 Likes