fix(server): D2D 内置皮肤补齐 light 配色,对齐 WebView2 CSS
Signed-off-by: Jia Sui <jsfaint@gmail.com>
This commit is contained in:
1 parent
1ae63ad13f
commit
bd7cf1114d
3 files changed
+128
-24
No files matched your search
+8
-2
@@ -2877,8 +2877,14 @@ void CandidateList::Render(DeviceResources &deviceResources)
|
||||
cache.fontFamily = fontFamily;
|
||||
}
|
||||
|
||||
ID2D1SolidColorBrush *labelBrush = deviceResources.GetSolidColorBrush(appearance_.labelColor);
|
||||
ID2D1SolidColorBrush *textBrush = deviceResources.GetSolidColorBrush(appearance_.textColor);
|
||||
const bool highlighted = selected || pressed;
|
||||
const D2D1_COLOR_F &labelColor = highlighted && appearance_.rowLabelSelected.a > 0.001f
|
||||
? appearance_.rowLabelSelected
|
||||
: appearance_.labelColor;
|
||||
const D2D1_COLOR_F &textColor =
|
||||
highlighted && appearance_.rowTextSelected.a > 0.001f ? appearance_.rowTextSelected : appearance_.textColor;
|
||||
ID2D1SolidColorBrush *labelBrush = deviceResources.GetSolidColorBrush(labelColor);
|
||||
ID2D1SolidColorBrush *textBrush = deviceResources.GetSolidColorBrush(textColor);
|
||||
ID2D1SolidColorBrush *annotationBrush = deviceResources.GetSolidColorBrush(appearance_.annotationColor);
|
||||
D2D1_COLOR_F translationColor = appearance_.annotationColor;
|
||||
translationColor.a *= 0.62f;
|
||||
|
||||
Reference in new issue
Block a user