what setting controls row color when hovering over data table?
已回答
In the database console I have “Show results in editor” checked. In the table of results after executing a query, when I hover the mouse over a row there is a highlight color applied. This color appears to come from the editor color theme, because when I change from my custom theme to the darcula editor color scheme the highlight color changes. But I can't for the life of me figure out which setting controls it. Anyone know?
Here's what it looks like:
And here's what it looks like with the Darcula editor color scheme:
Clearly changing the color scheme changes that mouse-over highlight color. Let me know if you have suggestions of where to look. I'm using IntelliJ IDEA 2024.3.3.
Thanks!
请先登录再写评论。
Hi Shad,
I don't think this setting can be controlled from the UI out of the box. The only settings related to viewing data in tables can be found under Settings | Editor | Color Scheme | Data Editor and Viewer.
Do you also have a custom UI theme applied? Settings | Appearance & Behavior | Appearance | Theme
To find the responsible setting in the existing configuration, you can try the following:
.icls
) from the IDE (image reference below)Example:
<option name="GRID_STRIPE_COLOR" value="4075C2" />
I'm using the default Darcula UI theme, but have a custom editor color scheme applied.
Using the on-screen color picker was a good idea, but was ultimately unsuccessful for me. I was able to find some stuff like the text background color, the caret color, and the caret line color in my custom editor color scheme, but I wasn't able to find the hover color. I noticed that the measured color (measured both with xScope and Digital Color Meter) was sometimes off by 1, so I used a regex to look for similar colors but also didn't have any success. I wonder if that hover color is the result of blending two colors or something?
At any rate, at that point I switched to the darcula editor color scheme and tried the same thing, but exporting the darcula scheme to the .icls file doesn't show anything. That sent me down the rabbit hole of downloading the whole intellij-community github repo and searching through that. I did fine one instance of the measured version of the darcula hover color in the darcula.theme.json file but it was for PackageSearch > SearchResult > hoverBackground. I made a custom UI theme and played around with changing that value, but it didn't seem to have any effect. There are some table properties and generic hover properties available in custom UI themes that look relevant. I was able to change a lot of colors in the app with my custom UI theme, but I didn't have any success in changing this particular hover color
Anyway, thanks for taking a look and let me know if you have any more ideas!
Hi Shad,
Sadly, there's no way to customize the hover color for in-editor table. There's a request for that in our tracker, feel free to upvote DBE-21396 and follow it for updates (see this article if you are not familiar with YouTrack).
JFYI, I don't see dedicated table-specific color keys for selected cell and active row too, but still they can be customized: those colors are taken from the Editor | Color Scheme | General, Editor > Selection background and Editor > Caret row, respectively.
Thanks for the info, I chimed in on that issue too!