Re: Dark UI mode hacked into SciTE for Win 10/11
Frank Schuster <[email protected]> Tue, 22 Oct 2024 02:12:41 -0700 (PDT)
| Newsgroups | gmane.editors.scite.general |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_45564_190163991.1729588361504 Content-Type: multipart/alternative; boundary="----=_Part_45565_37022980.1729588361504" ------=_Part_45565_37022980.1729588361504 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Neil, > That really is hacked. Moving the directories and files around makes it= =20 more difficult to understand how it has changed.=20 I completely understand, but I had to rearrange the code only a little for= =20 myself to be able to handle it in Visual Studio. But I only made those 2 changes to the structure: - I renamed previous folder "win32" to "win" - I moved all non-code files (BMPs etc) from "win" to a new folder "res",= =20 so "win" now only contains code (.cxx and .h) That's it. I only added the following 2 new files to the code base: - win/Dark.cxx=20 (https://github.com/59de44955ebd/Dark-SciTE-for-Windows/blob/main/src/win/D= ark.cxx) - win/Dark.h=20 (https://github.com/59de44955ebd/Dark-SciTE-for-Windows/blob/main/src/win/D= ark.h) And the only existing files I changed are those that now include "Dark.h"= =20 at the top, those are: - win/SciTEWin.cxx - win/SciTEWinBar.cxx - win/SciTEWinDlg.cxx - win/Strips.cxx Other than that, nothing has changed. The new dark toolbar BMPs "toolbar.bmp" and "toolbar24.bmp" are not just=20 inverted versions of existing images, that didn't look good, so I instead= =20 used some new b/w icons for those. Best regards On Tuesday, October 22, 2024 at 12:13:09=E2=80=AFAM UTC+2 Neil Hodgson wrot= e: > Hi 59de44955ebd <https://github.com/59de44955ebd>, > > since there are more and more vampire coders who can't stand light > > > One day we will be able to assist those who have strayed back to the side= =20 > of light and righteousness. > > (UIs), I recently hacked full dark UI mode into SciTE for Windows 10/11, > and I thought I'd share the result with you: > > > That really is hacked. Moving the directories and files around makes it= =20 > more difficult to understand how it has changed. > > I see that there are copies of the button images with inverted colours.= =20 > This can be done programmatically from the original images. There is some= =20 > code like this in the GTK version where the grey-scale values are convert= ed=20 > to alphas in WCheckDraw::Create. > > The macOS version of SciTE supports the system-wide dark appearance. > https://www.scintilla.org/DarkModeMac.png > > For now it's only a proof of concept, the changes would need some cleanup= =20 > before providing patches. > > > Yes. =20 > > Neil > --=20 You received this message because you are subscribed to the Google Groups "= scite-interest" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/= scite-interest/d371048d-675a-4ce4-95ab-9d21c422341fn%40googlegroups.com. ------=_Part_45565_37022980.1729588361504 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Neil,<br /><div><br /></div><div>>=20 That really is hacked. Moving the directories and files around makes it mor= e difficult to understand how it has changed. <br /></div><div><br /></div>= I completely understand, but I had to rearrange the code only a little for = myself to be able to handle it in Visual Studio.<br />But I only made those= 2 changes to the structure:<br /><br />- I renamed previous folder "win32"= to "win"<br />- I moved all non-code files (BMPs etc) from "win" to a new = folder "res", so "win" now only contains code (.cxx and .h)<br /><br />That= 's it.<br /><br />I only added the following 2 new files to the code base:<= br />- win/Dark.cxx (https://github.com/59de44955ebd/Dark-SciTE-for-Windows= /blob/main/src/win/Dark.cxx)<br />- win/Dark.h (https://github.com/59de4495= 5ebd/Dark-SciTE-for-Windows/blob/main/src/win/Dark.h)<br /><br />And the on= ly existing files I changed are those that now include "Dark.h" at the top,= those are:<br />- win/SciTEWin.cxx<br />- win/SciTEWinBar.cxx<br />- win/S= ciTEWinDlg.cxx<br />- win/Strips.cxx<br /><br />Other than that, nothing ha= s changed.<br /><br />The new dark toolbar BMPs "toolbar.bmp" and "toolbar2= 4.bmp" are not just inverted versions of existing images, that didn't look = good, so I instead used some new b/w icons for those.<br /><br />Best regar= ds<br /><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_attr">O= n Tuesday, October 22, 2024 at 12:13:09=E2=80=AFAM UTC+2 Neil Hodgson wrote= :<br/></div><blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex;= border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi <a href= =3D"http:///" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"ht= tps://www.google.com/url?hl=3Den&q=3Dhttp:///&source=3Dgmail&us= t=3D1729673125217000&usg=3DAOvVaw2zSXwKNj8O4oepFfKvGUcJ"></a><a href=3D= "http:///" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https= ://www.google.com/url?hl=3Den&q=3Dhttp:///&source=3Dgmail&ust= =3D1729673125217000&usg=3DAOvVaw2zSXwKNj8O4oepFfKvGUcJ"></a><a href=3D"= https://github.com/59de44955ebd" target=3D"_blank" rel=3D"nofollow" data-sa= feredirecturl=3D"https://www.google.com/url?hl=3Den&q=3Dhttps://github.= com/59de44955ebd&source=3Dgmail&ust=3D1729673125217000&usg=3DAO= vVaw2wBoKZ1fNaggv7BjI4m_fj">59de44955ebd</a>,<a href=3D"http:///" target=3D= "_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.com/ur= l?hl=3Den&q=3Dhttp:///&source=3Dgmail&ust=3D1729673125217000&am= p;usg=3DAOvVaw2zSXwKNj8O4oepFfKvGUcJ"></a><a href=3D"http:///" target=3D"_b= lank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google.com/url?h= l=3Den&q=3Dhttp:///&source=3Dgmail&ust=3D1729673125217000&u= sg=3DAOvVaw2zSXwKNj8O4oepFfKvGUcJ"></a><br><br><div></div><div><blockquote = style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:s= olid;border-left-color:rgb(204,204,204);padding-left:1ex">since there are m= ore and more vampire coders who can't stand light<br></blockquote><div>= <br></div></div><div><div>One day we will be able to assist those who have = strayed back to the side of light and righteousness.</div></div><div><div><= br></div><blockquote style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1p= x;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1= ex">(UIs), I recently hacked full dark UI mode into SciTE for Windows 10/11= ,<br>and I thought I'd share the result with you:<br></blockquote><div>= <br></div></div><div><div>That really is hacked. Moving the directories and= files around makes it more difficult to understand how it has changed.</di= v><div><br></div><div>I see that there are copies of the button images with= inverted colours. This can be done programmatically from the original imag= es. There is some code like this in the GTK version where the grey-scale va= lues are converted to alphas in WCheckDraw::Create.</div><div><br></div><di= v>The macOS version of SciTE supports the system-wide dark appearance.<br><= a href=3D"https://www.scintilla.org/DarkModeMac.png" target=3D"_blank" rel= =3D"nofollow" data-saferedirecturl=3D"https://www.google.com/url?hl=3Den&am= p;q=3Dhttps://www.scintilla.org/DarkModeMac.png&source=3Dgmail&ust= =3D1729673125217000&usg=3DAOvVaw1z73-xaKhw_bqFMY_-eD9q">https://www.sci= ntilla.org/DarkModeMac.png</a></div></div><div><div><br></div><blockquote s= tyle=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:so= lid;border-left-color:rgb(204,204,204);padding-left:1ex">For now it's o= nly a proof of concept, the changes would need some cleanup before providin= g patches.<br></blockquote><div><br></div></div><div><div>Yes. =C2=A0</div>= <div><br></div><div>Neil</div></div></blockquote></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;scite-interest" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">scit= [email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/scite-interest/d371048d-675a-4ce4-95ab-9d21c422341fn%40googlegro= ups.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d= /msgid/scite-interest/d371048d-675a-4ce4-95ab-9d21c422341fn%40googlegroups.= com</a>.<br /> ------=_Part_45565_37022980.1729588361504-- ------=_Part_45564_190163991.1729588361504--