app | HackLAB https://www.geeks3d.com/hacklab 3D Programming, Prototyping and Gamedev with GeeXLab Fri, 04 Oct 2019 12:49:23 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 (Demo) Windows 10 Dark Theme Switch https://www.geeks3d.com/hacklab/20191003/demo-windows-10-dark-theme-switch/ https://www.geeks3d.com/hacklab/20191003/demo-windows-10-dark-theme-switch/#respond Thu, 03 Oct 2019 19:00:03 +0000 https://www.geeks3d.com/hacklab/?p=1442 Win10 App Dark Theme Switch Download Forum thread (EN) The Windows 10 Dark Theme Switch is an utility and a demo at the same time. Utility because this small application allows to quickly enable or disable the dark theme for applications like the File Explorer, a feature introduced in Windows 10 version 1809 and higher. The dark theme can be enabled or disabled from Windows … Continue reading (Demo) Windows 10 Dark Theme Switch »

The post (Demo) Windows 10 Dark Theme Switch first appeared on HackLAB.]]>

Windows 10 App Dark Theme Switch



The Windows 10 Dark Theme Switch is an utility and a demo at the same time. Utility because this small application allows to quickly enable or disable the dark theme for applications like the File Explorer, a feature introduced in Windows 10 version 1809 and higher. The dark theme can be enabled or disabled from Windows Settings, but and that’s the interesting point, it can be turned ON/OFF via the registry. And the nice thing with the registry technique, is that your version of Windows 10 doesn’t need to be activated…

Several functions (in Lua and Python) have been added in recent versions of GeeXLab to play with Windows registry:

 
The registry value that controls the dark theme is:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme

AppsUseLightTheme is a REG_DWORD value. If AppsUseLightTheme is equal to 1, the regular light theme is enabled. If AppsUseLightTheme is equal to 0, the light theme is disabled which means the dark theme is enabled!

With GeeXLab it’s easy to read the AppsUseLightTheme value. Here is a function in Lua that does the job:

function ReadDarkThemeState()
  local ret, x = gh_utils.win_registry_read_value_dword("HKEY_CURRENT_USER", "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "AppsUseLightTheme")
  if (ret == 1) then
    -- The registry value has been successfully read
    return 1-x -- if 0, dark theme is enabled!
  end
  return -1 -- error
end  

And here is the function that enables or disables the dark theme:

function EnableDarkTheme(state)
  gh_utils.win_registry_write_value_dword("HKEY_CURRENT_USER", "Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", "AppsUseLightTheme", 1-state)
end  

 
If you have Windows 10 v1809+, and if dark theme is not enabled, you should see this something like this when you launch GeeXLab dark theme switch the first time:

Windows 10 App Dark Theme Switch - Dark theme is disabled

 
This message means the value AppsUseLightTheme is nor present in the registry. If you click NO, GeeXLab does nothing. But if you click YES, GeeXLab creates the value in the registry. Once the value is created you should see something like:

Windows 10 App Dark Theme Switch - Dark theme is disabled

 
If you click on Enable Dark Theme, you should see:

Windows 10 App Dark Theme Switch - Dark theme is enabled

 
Yeah! You have enabled the dark theme!

Remark: this demo/app reads and writes in the registry. It’s recommended to backup your registry (using regedit > File > Export function) before playing with any tool that can modify the registry.

The source code of the demo (in Lua) is available in the src/ folder.

More information:

The post (Demo) Windows 10 Dark Theme Switch first appeared on HackLAB.]]>
https://www.geeks3d.com/hacklab/20191003/demo-windows-10-dark-theme-switch/feed/ 0
H4shG3n 0.3.2 Hash Code Generator released https://www.geeks3d.com/hacklab/20191003/h4shg3n-0-3-2-hash-code-generator-released/ https://www.geeks3d.com/hacklab/20191003/h4shg3n-0-3-2-hash-code-generator-released/#respond Thu, 03 Oct 2019 15:15:28 +0000 https://www.geeks3d.com/hacklab/?p=1441 H4shG3n for Windows 64-bit H4shG3n for Linux 64-bit H4shG3n for Raspbian Buster (32-bit) Feedback thread / Forum (EN) 1 – Release Notes H4shG3n, a simple hash code generator, has been updated with the latest version of GeeXLab (0.29.3 on Windows and Linux and 0.29.2 on Raspbian). H4shG3n is now available on Raspberry Pi (Raspbian Buster and higher). H4shG3n computes the MD5, SHA1 and SHA256 hash … Continue reading H4shG3n 0.3.2 Hash Code Generator released »

The post H4shG3n 0.3.2 Hash Code Generator released first appeared on HackLAB.]]>

H4shG3n Hash Code Generator



1 – Release Notes

H4shG3n, a simple hash code generator, has been updated with the latest version of GeeXLab (0.29.3 on Windows and Linux and 0.29.2 on Raspbian).

H4shG3n is now available on Raspberry Pi (Raspbian Buster and higher).

H4shG3n computes the MD5, SHA1 and SHA256 hash codes that are popular on the web. See HERE for more details about the functions used in this small app.


H4shG3n Hash Code Generator

 

2 – Changelog

Version 0.3.2.0 - 2019/10/03
+ added Raspberry Pi version (requires Raspbian Buster).
! On Linux / Raspbian, the hashcodes.txt file is
  automatically opened after hash codes have 
  been exported.
! updated with GeeXLab 0.29.3.0
The post H4shG3n 0.3.2 Hash Code Generator released first appeared on HackLAB.]]>
https://www.geeks3d.com/hacklab/20191003/h4shg3n-0-3-2-hash-code-generator-released/feed/ 0
MadView3D 0.3.0 released https://www.geeks3d.com/hacklab/20180823/madview3d-0-3-0-released/ https://www.geeks3d.com/hacklab/20180823/madview3d-0-3-0-released/#respond Thu, 23 Aug 2018 11:10:09 +0000 https://www.geeks3d.com/hacklab/?p=1385   MadView3D is a simple 3D object viewer. MadView3D is based on GeeXLab and is available on Windows, Linux, macOS, Raspberry Pi and Tinker Board. MadView3D can load many 3D file formats including .obj, .3ds, .fbx, .glft. More details about MadView3D 0.3.x can be found in the RELEASE NOTES. MadView3D can be downloaded from THIS PAGE.

The post MadView3D 0.3.0 released first appeared on HackLAB.]]>

MadView3D

 

MadView3D is a simple 3D object viewer. MadView3D is based on GeeXLab and is available on Windows, Linux, macOS, Raspberry Pi and Tinker Board.

MadView3D can load many 3D file formats including .obj, .3ds, .fbx, .glft.

More details about MadView3D 0.3.x can be found in the RELEASE NOTES. MadView3D can be downloaded from THIS PAGE.


MadView3D

MadView3D

MadView3D

The post MadView3D 0.3.0 released first appeared on HackLAB.]]>
https://www.geeks3d.com/hacklab/20180823/madview3d-0-3-0-released/feed/ 0