cogentcore / core

A free and open source framework for building powerful, fast, and elegant 2D and 3D apps that run on macOS, Windows, Linux, iOS, Android, and the Web with a single pure Go codebase, allowing you to Code Once, Run Everywhere.
http://cogentcore.org/core
BSD 3-Clause "New" or "Revised" License
1.31k stars 71 forks source link

Improve pop-up styles or events #936

Open ddkwork opened 3 months ago

ddkwork commented 3 months ago

Describe the feature

This is a visual illusion that has existed for a long time, the pop-up menu selects the first item by default, and the other point is that the background color of the mouse over the child is too faint, and it visually feels like it is stuck. I feel like this will have a slight impact on the user experience. In addition, it would be nice if the button could be like the button on the github web page: when the mouse passes by, it gets focus, and automatically darkens the color of the outline line, which makes it feel like the button is ready to go, rather than the illusion that the mouse clicks on it and doesn't respond. In addition, can you add another type to the type of the text editing box: just like the ellipse + protruding style in the upper left corner or the upper right corner of various chat pages, which will be used to design the categorical reply area of the AI chat interface, such a type is more in line with humanity and aesthetics.

Relevant code

No response

ddkwork commented 3 months ago

screenshots

ddkwork commented 3 months ago

Maybe I'm not right, but in a nutshell: add a tooltip-like type to the text editing widget

ddkwork commented 3 months ago

Actions to increase user experience satisfaction: The pop-up menu does not select the first item by default, and the second is to deepen the background color when the focus of the child item is obtained

kkoreilly commented 3 months ago

We already do change the color of the menu buttons when they are focused. I will consider having it not select the first pop-up item by default. I will work on figuring out the best way to style the chat boxes.