Menu

Creating new Blue colored theme.....having trouble with the .ini template

Help
2020-03-12
2020-03-13
  • Tim Dickerson

    Tim Dickerson - 2020-03-12

    Hi. I downloaded the two files (.dll & .plgx) and added them as well as the file 'DarkTheme.ini' (with it's default contents) to the plugin's directory and I would like to mod it to change some of the colors within KeePass 2.44.

    Is it just a matter of editing the .ini file (keeping the same name) and opening up any paint program or online resource that would tell me what hex code OR 0-255 numbers are used for each color I want and simply ameding it to each specific line below as needed using the following format in the EXAMPLE below:

    Tnx

    Tim
    ARS N9NU

    P.S. All I ever end up getting when it hit CTRL+T is the dark brown theme despite changes I have made to the .ini file [partial edit below]. Obviously I am missing something here. Do I need to edit that .plgx or .dll file as well??


    [DarkTheme]
    Name=Reactor-Critical

    [Palette] <--- Are these the only colors you can choose from ??
    Red = #ff0000 <--- Are these the only colors you can choose from ??
    Green = #0f0 <--- Are these the only colors you can choose from ??
    Blue = (0, 0, 255) <--- Are these the only colors you can choose from ??

    [Other]
    ControlNormalColor =
    ControlDisabledColor =

    [Control]
    BackColor = (242, 242, 242) <---EXAMPLE FORMAT where each (RGB) is 0 to 255
    ForeColor = (64, 176, 244) <---EXAMPLE FORMAT where each (RGB) is 0 to 255

    [Form]
    BackColor = (20, 200, 255)
    ForeColor =


     
  • T. Bug Reporter

    T. Bug Reporter - 2020-03-12

    First off, I assume you're talking about the KeeTheme plugin, but you don't make that clear.
    Second, for any plugin, you need a DLL file OR a PLGX - not both.
    Third, customizing this plugin seems fairly straightforward - even if downloading it isn't. The [Palette] section of the INI file appears to be for naming your own colors, which you can then use elsewhere in the file. There doesn't appear to be anything special about the words like "Red" and "Green" that you see in the example file - you can put things in that section like MySpecialShadeOfBlue = (2,44,140), and then say. e.g. ForeColor = MySpecialShadeOfBlue later in the file. (Words in the other sections, like ForeColor, do appear to have specific meanings.)

    (I'm using the word "appear" a lot here, because I don't actually use this plugin, so I haven't tried any of this yet, but I wanted to get the info out to you ASAP. I'll post again after I do more testing.)

     
  • T. Bug Reporter

    T. Bug Reporter - 2020-03-13

    I apologize for jumping the gun, but after several hours of fiddling, I can't get this plugin to react to changes in the INI file at all. Perhaps you should eMail Krzysztof, or open an issue at his Github site.

     

Log in to post a comment.