Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/21/2021 in all areas

  1. I agree so much on that statement. I have no words to explain that. You are "right on the money" with that. Now we need to synchronize. I'm not into this coloring stuff, there are those users here that really know color, but since I'm answering, I hope to make my point across. The thing is that colors are in fact a color in contrast with another color, so a color per se, is not a particular color but that, that is perceived as that color. So ... mind twisting !. = ...you can search for color theory to read more about it. ...think of UX vs UI: $COLOR_PINK is not important, theme is important. But if finding theme colors is a hinderance then, ...just declare each color and that is that. ...these well known people don't give two hoots about it, but is legible. Because is orange over white, and that is the way the logo should be seen ( I guess ). ... but Orange on dark gray looks good too. So, to recap: "Whatever is the About box, should be legible". The rest is not really an OMG! thing. <a side note> I would love the industry to stablish a standardized dark mode. Not exact colors but of " light on dark " as an option to the " dark on light ". In the beginning, on CRTs, we'd have teal or green or whatever on a black background, as it is much better in an eight hour shift, piercing with your eyes at a screen. Anyway, I feel I'm beating a dead horse </a side note>
    2 points
  2. Are you tinkering now with ... different? Now I remember why programming colors is not my specialty. I get lost in it and then can't stop. ... But I have to stop so that it doesn't become a "never-ending story". Thanks for your new ideas and sharing. I like your ideas!
    1 point
  3. ..another idea: ;~ _SysColor_OfMyLiking($COLOR_BTNFACE, 0x00FF00) ; If you wanna have your forced color declaration. ;~ _SysColor_OfMyLiking($COLOR_BTNTEXT, 0x00FF00) ; This $COLOR_BTNTEXT would require the RTF to have the ;~ _SysColor_OfMyLiking($COLOR_HOTLIGHT, 0x00FF00) ; text colored to 0xFF0000 ( bright red ) for ReColorizeTheRTF() ; BackColor for GUI and controls. ; to set it as a given color. Global $iBackColor = _SysColor_OfMyLiking($COLOR_BTNFACE) ; 0xC0C0C0 ; medium light gray 0xC0C0C0 ; mod. Func _SysColor_OfMyLiking($iColorIndex, $iVal = Default) ; $COLOR_HOTLIGHT ; $COLOR_BTNTEXT Local Static $aColors[40][2] If $iColorIndex > 39 Then Return SetError(1, $iColorIndex, 0) If $iVal <> Default Then $aColors[$iColorIndex][0] = 1 $aColors[$iColorIndex][1] = $iVal EndIf If Int($aColors[$iColorIndex][0]) Then Return $aColors[$iColorIndex][1] If Not $aColors[$iColorIndex][0] Then Return _WinAPI_SwitchColor(_WinAPI_GetSysColor($iColorIndex)) EndFunc Func ReColorizeTheRTF(ByRef $sRTF) Local $RGB = _SysColor_OfMyLiking($COLOR_HOTLIGHT) Local $R = _WinAPI_GetRValue($RGB) Local $G = _WinAPI_GetGValue($RGB) Local $B = _WinAPI_GetBValue($RGB) $sRTF = StringReplace($sRTF, ";\red0\green0\blue128;", ";\red" & Int($R) & "\green" & Int($G) & "\blue" & Int($B) & ";") $RGB = _SysColor_OfMyLiking($COLOR_BTNTEXT) $R = _WinAPI_GetRValue($RGB) $G = _WinAPI_GetGValue($RGB) $B = _WinAPI_GetBValue($RGB) $sRTF = StringReplace($sRTF, ";\red255\green0\blue0;", ";\red" & Int($R) & "\green" & Int($G) & "\blue" & Int($B) & ";") EndFunc ;==>ReColorizeTheRTF Func Adlib_RefreshDefaultColors() AdlibUnRegister("Adlib_RefreshDefaultColors") $iBackColor = _SysColor_OfMyLiking($COLOR_BTNFACE) $HOTLIGHT = _SysColor_OfMyLiking($COLOR_HOTLIGHT) $BTNTEXT = _SysColor_OfMyLiking($COLOR_BTNTEXT) .... ....
    1 point
  4. I just tried your code again. Good work! 👍 The reason is quite simple. For example, my AutoIt editor has a dark style, but with your code the about dialog is light. It doesn't match. That was why I tinkered with a way to display a dark about dialog for a dark program. But now I understand you already have the solution and are happy. And that's the main thing ... because then I'm satisfied too.
    1 point
  5. This information is here for your benefit. Please update both accordingly if you want support. 😉 Check the function header for details on this function's return value, which isn't a session ID.
    1 point
  6. Don't over think. Run the code. Read the code. It's all there in prefect Chinese AutoIt.
    1 point
  7. Example from this forum: $sRowText = _WD_ElementAction($sSession, $aElements[$i], "Property", "innerText")
    1 point
  8. OhBobSaget, Close - the icons will be 201 & 202 as explained in the Help file snippet I posted. M23
    1 point
×
×
  • Create New...