Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit f16b1bd

Browse files
committed
Update represent bytes
1 parent 40eef71 commit f16b1bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/util/settings/theme.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ QColor chunkBackground(int color_index) {
9595

9696
QColor byteColor(uint8_t byte) {
9797
QColor color = util::settings::hexedit::colorOfBytes();
98-
return color.darker(100 + (0x100 - byte) * 200 / 255);
98+
return QColor::fromHsv(color.hue(), color.saturation(), 50 + byte * (220 - 50) / 256);
9999
}
100100

101101
QFont font() {

0 commit comments

Comments
 (0)