From 2365a748b88ca51831bca23b626ff63517c06470 Mon Sep 17 00:00:00 2001 From: gambas Date: Tue, 26 Jan 2021 22:34:02 +0100 Subject: [PATCH] Display monospace text with a light gray background. [WIKI] * NEW: Change website icon. * NEW: Display monospace text with a light gray background. --- app/src/gambas-wiki/.public/logo.png | Bin 4125 -> 1973 bytes app/src/gambas-wiki/.public/style.css | 5 ++--- app/src/gambas-wiki/.src/HttpStat.module | 12 ++++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/app/src/gambas-wiki/.public/logo.png b/app/src/gambas-wiki/.public/logo.png index b33c3f9923480ddbfd1afe13a0cabe3d4179a2fc..c7ac361e4254fee4ebeac574c3f354c9b9ba28df 100644 GIT binary patch literal 1973 zcmX|Bc{mh$7amdRc8Obb#iuMOOqSMLWGP`R5eW%3Um+Aq_!4Fqlcm9sB-v7yx)E72 z#EgBANVb`27-nIZF*9lQ<(s*aI?P(P-#A{X1Do&E0u0IGdIL!r=A zRT}`N5#8ghG$@+50AOL2(J}u=Zmtz@XK!xbb0D%7+7!X71 zKiwpKO0pb32Wh{||BT49{E?ER_lp?PlJ%%51{BCIne@Lcv|nAhK_-(KL)ztJIqSGo z$UU3e)faZni?R34>9WX_^sN{pGfOdRCW)3RV0xHlwl{xEWSuGNnz!E#9P8T&^S73dbxX!?pE0U z5=%Oq-q|%vkF5R76G3QdtCb@qeZ=u4 zR`Vo{jyzM`OYEFkIST)njhgc=9<<8tKK%$?&`o&wVYZL3285z)9-+UGS#4iwmg$|o zB|}XUR2EklUOm?TZ4KFl4=f*sG*1^{zFELJ$_EyzhDg2mRnMYiO#@jLS z-(%!a67&AMNe*8WR6ZPEKRHd~Kx(rJk>GTT+$e_n!!Iu)pZn+v3X$)^Jj@MGq<(d*l&I zGC@zaVt96*D<3ltR`}&R_w|J-DH=5@aCb$3K{K-mqlu#(M$hVvo(XB!Lq`}viR%!L zE?dGFAvrWEJ}M;c(gmPe*~+j>jNt)8Lo2VQE5)SYFf}ctCFX4}>`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YK`OuN@4}j{v357?b?iyA@>CvPG(BQN&TQ!qEd{ zaaJJlaXR^bV$ozNZE#)$h|-5BV*U6>O4MUu257^wb+D#QRxqaJbLn_F(5A`qCSO6S zX-a{n;cAkOnF7y@g|&znMCqTW0?gQ0#f|iqJWPTACkCu5AWuS(VoU~LQ_L_~H8ems z)Y7Kj=nz23xexKeZMBME4$q4K%H_Q~tI_-Y&>7z0P5=Kx)Jg6*rnOpHGQ4MA1Q=sJ zbk28f_Eui#Xwt@fLq_uEQ9I~T|iV2ttChok#v$0mDf)#`70-f!Dx ztwlsi#+Vionj6Z`R(3^~4WD*oYU}R7sih~rCjy~Y6G}la1C)W>Pg3gWOziLmFk`iu z?{56YJ!>}V-F~(ZR^?qE6pYE%LZ*IRE(bFSOrx2XA-NYL#+WYRUsk4jcd~Z@CBUP@ z{}{XrHUS(^1LlC)WUr*Vs^)%_nA5ka&LxpwlYv5@3Ixf$Hrd~eN>J+ms7I8U`&>#! zGk9q8&(n!Jl#@LL?A*tnULdLsQ0TJncENc2* bzw`Eg->exFuq_|X00000NkvXXu0mjfV-4uR diff --git a/app/src/gambas-wiki/.public/style.css b/app/src/gambas-wiki/.public/style.css index fd1312cf1..aa435c89d 100644 --- a/app/src/gambas-wiki/.public/style.css +++ b/app/src/gambas-wiki/.public/style.css @@ -101,13 +101,12 @@ H1,H2 { } CODE { - /*background: #F0F0F0;*/ - /*padding: 0px 1px;*/ + background-color: #F4F4F4; display: inline; } PRE { - /*background: #F0F0F0;*/ + /*background-color: #F4F4F4;*/ display: inline-block; padding-left: 0.5em; margin: 0px; diff --git a/app/src/gambas-wiki/.src/HttpStat.module b/app/src/gambas-wiki/.src/HttpStat.module index bcb740e85..5e4272c22 100644 --- a/app/src/gambas-wiki/.src/HttpStat.module +++ b/app/src/gambas-wiki/.src/HttpStat.module @@ -23,7 +23,7 @@ Public Sub Render() If sDate Then Try dDate = Date(CInt(Mid$(sDate, 5, 4)), CInt(Mid$(sDate, 3, 2)), CInt(Mid$(sDate, 1, 2))) If IsNull(dDate) Then dDate = Date() - hImage = New Image(1440, 128, Color.White) + hImage = New Image(1440, 256, Color.White) Cairo.Begin(hImage) Cairo.AntiAlias = Cairo.AntiAliasNone @@ -38,8 +38,8 @@ Public Sub Render() aStat.Read(hFile) Close #hFile For I = 0 To aStat.Max - H = Min(128, (aStat[I] * 10) \ 60) - If H > 0 Then hImage.FillRect(I, 128 - H, 1, H, &HA0D0FF&) + H = Min(256, (aStat[I] * 5) \ 60) + If H > 0 Then hImage.FillRect(I, 256 - H, 1, H, &HA0D0FF&) 'DH = aStat[I] Mod 10 'If DH > 0 Then hImage[I, 127 - H] = Color.SetAlpha(&HA0D0FF&, Max(0, 255 - DH * 10)) Next @@ -73,7 +73,7 @@ Public Sub Render() Cairo.MoveTo(4, I + 8) Cairo.DrawText(CStr(H) & "0 req./s") Endif - I -= 100 + I -= 50 Inc H Wend @@ -87,12 +87,12 @@ Public Sub Render() Cairo.MoveTo(0, I) Cairo.LineTo(1440, I) Cairo.Stroke - I -= 100 + I -= 50 Wend For I = 0 To 23 Cairo.MoveTo(I * 60, 0) - Cairo.LineTo(I * 60, 255) + Cairo.LineTo(I * 60, hImage.H) Cairo.Stroke Next