eteran / edb-debugger

edb is a cross-platform AArch32/x86/x86-64 debugger.
GNU General Public License v2.0
2.68k stars 322 forks source link

How can I set the theme to white on a dark-themed system (Support custom color for QDisassemblyView background) #769

Closed d0mnik closed 4 years ago

d0mnik commented 4 years ago

I would like to set the theme of edb to white as the disassembly is very unreadable on the default dark theme.

eteran commented 4 years ago

The theming isn't quite perfect, but it can get you pretty close to looking great on a dark setup. Read here for details on the theming, though< i do fear it may be a little out of date:

https://github.com/eteran/edb-debugger/wiki/Theming

d0mnik commented 4 years ago

Is there a specific option to set the disassembly background to white? I can't seem to find it in the wiki.

eteran commented 4 years ago

Ah, the background for all windows is set from the system window theme. There isn't an option (yet) to override that with a custom color.

d0mnik commented 4 years ago

So the only way to get it to display as white is to change my system theme?

eteran commented 4 years ago

Currently, yes.

The mentality is that we want the disassembly to mimic the look of all the other windows in the app.

However, being able to override the BG color is not unreasonable, I think we can work on adding support for that

d0mnik commented 4 years ago

That would be great. Should I open a separate issue for that or would this suffice?

eteran commented 4 years ago

This is good enough :+1:

junknet commented 4 years ago

I tried to modify the source code through qt wiki many times,but but failed..... I'm already dizzy. I think you must have defined the color of the widget's base class before. may be like: system_color=palette.windows.color() But I can't find where it is !Please help me quickly...

eteran commented 4 years ago

Ah, sorry, I got a bit distracted :-P. I'll see what I can do relatively soon :-).

eteran commented 4 years ago

There is now a new theme entry: theme.disassembly.background which you can use to set the disassembly widget background color.