mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-07-10 19:58:15 +02:00
CR feedback
This commit is contained in:
parent
307cfcc7a2
commit
d3c46cce8f
3 changed files with 5 additions and 1 deletions
|
@ -38,7 +38,9 @@ VoxelStatsDialog::VoxelStatsDialog(QWidget* parent, VoxelSceneStats* model) :
|
||||||
// Set foreground color to 62.5% brightness of the meter (otherwise will be hard to read on the bright background)
|
// Set foreground color to 62.5% brightness of the meter (otherwise will be hard to read on the bright background)
|
||||||
QPalette palette = label->palette();
|
QPalette palette = label->palette();
|
||||||
unsigned rgb = itemInfo.colorRGBA >> 8;
|
unsigned rgb = itemInfo.colorRGBA >> 8;
|
||||||
rgb = ((rgb & 0xfefefeu) >> 1) + ((rgb & 0xf8f8f8) >> 3);
|
const unsigned colorpart1 = 0xfefefeu;
|
||||||
|
const unsigned colorpart2 = 0xf8f8f8;
|
||||||
|
rgb = ((rgb & colorpart1) >> 1) + ((rgb & colorpart2) >> 3);
|
||||||
palette.setColor(QPalette::WindowText, QColor::fromRgb(rgb));
|
palette.setColor(QPalette::WindowText, QColor::fromRgb(rgb));
|
||||||
label->setPalette(palette);
|
label->setPalette(palette);
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// hifi
|
// hifi
|
||||||
//
|
//
|
||||||
// Created by Brad Hefta-Gaub on 7/18/13.
|
// Created by Brad Hefta-Gaub on 7/18/13.
|
||||||
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
// hifi
|
// hifi
|
||||||
//
|
//
|
||||||
// Created by Brad Hefta-Gaub on 7/18/13.
|
// Created by Brad Hefta-Gaub on 7/18/13.
|
||||||
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue