FileView: Number of pages are now be more readable on dark backgrounds.
[GB.FORM] * BUG: FileView: Remove a debugging message. * NEW: FileView: Number of pages are now be more readable on dark backgrounds.
This commit is contained in:
parent
166bb46e7e
commit
5a1095794e
1 changed files with 5 additions and 3 deletions
|
@ -126,9 +126,11 @@ Private Sub PrintIcon(hImage As Image, sThumb As String, Optional bVideo As Bool
|
||||||
hRect.X = X + hImage.W - hRect.W - hRect.H / 4
|
hRect.X = X + hImage.W - hRect.W - hRect.H / 4
|
||||||
hRect.Y = Y + hImage.H - hRect.H - hRect.H / 4
|
hRect.Y = Y + hImage.H - hRect.H - hRect.H / 4
|
||||||
Paint.Rectangle(hRect.X, hRect.Y, hRect.W, hRect.H, hRect.H)
|
Paint.Rectangle(hRect.X, hRect.Y, hRect.W, hRect.H, hRect.H)
|
||||||
Paint.Background = Color.TextForeground
|
Paint.Background = Color.Gradient(Color.TextForeground, Color.TextBackground, 0.33)
|
||||||
Paint.Fill
|
Paint.Fill(True)
|
||||||
Paint.Background = Color.TextBackground
|
Paint.Background = Color.TextBackground
|
||||||
|
Paint.LineWidth = 1
|
||||||
|
Paint.Stroke
|
||||||
Paint.DrawText(CStr(nPage), hRect.X, hRect.Y, hRect.W, hRect.H, Align.Center)
|
Paint.DrawText(CStr(nPage), hRect.X, hRect.Y, hRect.W, hRect.H, Align.Center)
|
||||||
Endif
|
Endif
|
||||||
|
|
||||||
|
@ -213,7 +215,7 @@ Private Sub PrintPdfFile(sPath As String, sThumb As String)
|
||||||
|
|
||||||
Try hPdf = New PdfDocument(sPath)
|
Try hPdf = New PdfDocument(sPath)
|
||||||
If Error Then
|
If Error Then
|
||||||
Error File.Name(sPath); ": "; Error.Text
|
'Error File.Name(sPath); ": "; Error.Text
|
||||||
Return
|
Return
|
||||||
Endif
|
Endif
|
||||||
If hPdf.Count = 0 Then Return
|
If hPdf.Count = 0 Then Return
|
||||||
|
|
Loading…
Reference in a new issue