-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.9 Themes #3760
Comments
Please post your theme.yml file here so we can see what is wrong. You will need to rename it to theme.yml.txt. |
________________________________
From: philmoz ***@***.***>
Sent: 04 July 2023 23:12
To: EdgeTX/edgetx ***@***.***>
Cc: tourerjim ***@***.***>; Author ***@***.***>
Subject: Re: [EdgeTX/edgetx] 2.9 Themes (Issue #3760)
Please post your theme.yml file here so we can see what is wrong. You will need to rename it to theme.yml.txt.
—
Reply to this email directly, view it on GitHub<#3760 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APXDJIR4HIKRTV57S6VKXR3XOSINRANCNFSM6AAAAAAZ57DOQY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
…---
summary:
name: FM2M_005
author: Jim
info: theme 005
colors:
PRIMARY1: 0x000000
PRIMARY2: 0xF0FCF0
PRIMARY3: 0xF80000
SECONDARY1: 0x000400
SECONDARY2: 0xA8ACA8
SECONDARY3: 0xB8CCE0
FOCUS: 0x407400
EDIT: 0x4890E0
ACTIVE: 0xF8E418
WARNING: 0xB0B0B0
DISABLED: 0x808080
|
You'll need to upload this on Github - email attachments are ignored. |
Open the file in a text editor and remove the blank line before the 'colors:' section. |
There was a bug in the YAML parser handling of blank lines. 2.9 changed the theme parser to use the same one as used by the model and radio files (which historically did not have blank lines unlike themes). This should get fixed in a later version; but in the meantime you can work around it by removing any blank lines in the theme.yml file. |
Thank you, removing blank lines my themes are now working with 2.9 |
Your file (edited FM2M_Concrete) |
Check that Windows is not hiding a .txt extension on the edited file. |
Could you show example, I save in Notepad as theme.yml |
In your own screenshot, you can't see an extension for the logo file, so the extension for your theme file may or may not be Alternately, when you save it in Notepad, make sure you change the save as type from btw, I updated all the themes in the theme directory that have a blank line to remove them, so you can also just download the latest version of it from https://github.com/EdgeTX/themes/releases ;) |
Thank you, I'll try that. |
Alls good now, on 2.8.4 or lower I didn't have issues with image naming 'logo' and saving or .yml files in Notepad, but something has changed in 2.9 saving logo is now saved as logo.png & theme.yml as your 'image file options' theme.yml is now saved as 'all file types. |
Neither the extension for the logo file ( Have a look at the name of the option in your file browser we directed you to, it isn't just "hide file extensions", it's "hide known file extensions". In the first screenshot you showed in #3760 (comment), your windows install doesn't recognise the file type, so shows a generic icon. In the second screenshot, it shows a different icon, hence the file extension (which you can't see, otherwise you'd also be able to see the extension for the logo file next to it was .png), so really that file was called |
More importantly, you can now see the file extensions for both, so know they are both correct. If you wanted to upload it to github, you would have to do what philmoz said back at #3760 (comment), which was
in other words, change the file extension so it ends with Anyway, the important thing here is there was a change in how EdgeTX 2.9 reads/writes |
Your helps are well appreciated, an old boy trying to keep up with all this tech and am really pleased I've got all my own themes back now working. |
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Transmitter firmware
Current Behavior
TX16s MKII updated to 2.9 but my own Themes screen goes black and not able to read anything from the screen, went back to 2.8.4 and my Themes screens fine and with 2.8.3
Cant edit my Themes on 2.9, cant see 'Edit' or the drop down to edit.
Expected Behavior
I assume I just copy over my sc card content and my theme.yml works
Steps To Reproduce
If I change from EdgeTX theme to my theme screen goes black
Version
2.8.4
Transmitter
Radiomaster TX16S / TX16SMK2
Operating System (OS)
Windows
OS Version
none
Anything else?
No response
The text was updated successfully, but these errors were encountered: