sveinbjornt / Platypus

Create native Mac applications from command line scripts.
https://sveinbjorn.org/platypus
BSD 3-Clause "New" or "Revised" License
2.79k stars 169 forks source link

Platypus 5.4.1 bug: it does not respect/read Text Window colours set #275

Open mackonsti opened 1 month ago

mackonsti commented 1 month ago

Hi @sveinbjornt thank you for keeping Platypus alive!

I have tried twice to generate an application with latest Platypus 5.4.1 and it seems that despite setting the text window background and foreground colours, they are not used/respected even if they are declared in AppSettings.plist generated.

For example, setting BLACK background window and GREEN foreground for text, I still get white background and purple text in the resulting generated app... Here is what is in the generated PLIST:

    <key>TextBackground</key>
    <string>#000000</string>
    <key>TextFont</key>
    <string>Monaco</string>
    <key>TextForeground</key>
    <string>#00ff00</string>
    <key>TextSize</key>
    <real>13</real>

Moreover, I don't see any longer the encoding, was it removed? Perhaps not set via the font selector window, not sure:

    <key>TextEncoding</key>
    <integer>4</integer>

Thank you for having a look at this bug!

mackonsti commented 1 month ago

Apologies @sveinbjornt I corrected my title, it has to do with 5.4.1 version. For some reason, you mention 5.4.2 in your documentation but never released it... https://github.com/sveinbjornt/Platypus/blob/master/Documentation/Documentation.md

mackonsti commented 1 month ago

I can replicate the same bug in Platypus 5.4.0 as well.

However, in that build, the font size is not real but integer?

    <key>TextSize</key>
    <integer>14</integer>

Is this confirmed to be correct for either 5.4.0 and 5.4.1?

sveinbjornt commented 1 month ago

Dark mode inverts the colours.

mackonsti commented 1 month ago

Thanks @sveinbjornt I will try to invert the inverted colour then 😄