Project tree: Compressed files icons are now darker through brightness modification.
[DEVELOPMENT ENVIRONMENT] * BUG: Project tree: Compressed files icons are now darker through brightness modification.
This commit is contained in:
parent
61aae0c606
commit
175d64b9fd
1 changed files with 3 additions and 4 deletions
|
@ -1165,14 +1165,13 @@ Public Sub AddCompressedEmblem(hSource As Image) As Image
|
|||
Dim hImage As Image
|
||||
Dim iCol As Integer
|
||||
|
||||
hImage = hSource.Copy()
|
||||
If Application.DarkTheme Then
|
||||
iCol = Color.SetAlpha(Color.TextForeground, 128)
|
||||
hImage.Brightness(0.5)
|
||||
Else
|
||||
iCol = Color.SetAlpha(Color.TextForeground, 220)
|
||||
hImage.Brightness(-0.25)
|
||||
Endif
|
||||
|
||||
hImage = hSource.Copy()
|
||||
hImage.PaintRect(0, 0, hImage.W, hImage.H, iCol)
|
||||
Return hImage
|
||||
|
||||
End
|
||||
|
|
Loading…
Reference in a new issue