cppcryptfs icon indicating copy to clipboard operation
cppcryptfs copied to clipboard

Dark mode

Open wards999 opened this issue 3 years ago • 2 comments

Very low priority request:

For the UI to change to a dark background if windows dark mode is enabled.

wards999 avatar Apr 22 '21 13:04 wards999

I did some looking around, and apparently it's not that straightforward to make an MFC app like cppcryptfs support dark mode. It looks like the MFC dialog controls don't support switching to dark mode. Each tab in cppcryptfs is an MFC dialog control.

As a I understand it, I would have to write a whole bunch of code to support dark mode.

I'll do some more research, but unless I can find a mostly automatic way to support it, I think this won't get added.

bailey27 avatar Apr 27 '21 14:04 bailey27

SiriKali[1] now supports cppcryptfs and dark mode. Download link is here[2].

You have to first tell SiriKali where cppcryptfs.exe and cppcryptfsctl.exe executables are by going to the following setting and set the folder path of where they are located:- Menu->Settings->External Commands->Set Executables Search Path.

[1] https://mhogomchungu.github.io/sirikali/ [2] https://github.com/mhogomchungu/sirikali/releases/tag/1.5.0

If you do not want the colors i set, you can change them by modifying a file located at "C:\Users\$USER\AppData\Local\SiriKali\SiriKali\themes\Dark.json" and explanation for what those json values are is below:-

  1. A list of Qt::GlobalColor is here[3].
  2. You can replace those Qt::GlobalColor with "rgba" json array for a better control of colors.
  3. You can google for rgba values for colors that you want to use and this[4] link seems to be a good start for gray values.

[3] https://doc.qt.io/qt-5/qcolor.html#predefined-colors

[4] http://www.flatuicolorpicker.com/grey-rgba-color-model/

Screenshots below:-

Screenshot_20220301_200724 Screenshot_20220301_200800 Screenshot_20220301_202908

mhogomchungu avatar Mar 01 '22 17:03 mhogomchungu