-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Fix theme path issue #3048
Fix theme path issue #3048
Conversation
Seems like there is an issue on Linux. Tested with Ubuntu 18 and css not found - I need to do more debugging here. Update |
Hello, Edited to add: On Windows 7, I have a Linux machine at home I can test with tomorrow. |
return `${appPath}/node_modules/codemirror/theme/elegant.css` | ||
} | ||
return theme | ||
? (win ? theme.path : `../${theme.path}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is what it needs to be for macOS:
? (win ? theme.path : `../${theme.path}`) | |
? (win ? theme.path : `${appPath}/${theme.path}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, changed this & tested it with Ubuntu binary. Theming (Editor, in preview code block & app theme) is working.
@@ -141,7 +140,7 @@ function get () { | |||
const theme = consts.THEMES.find(theme => theme.name === config.editor.theme) | |||
|
|||
if (theme) { | |||
editorTheme.setAttribute('href', `../${theme.path}`) | |||
editorTheme.setAttribute('href', win ? theme.path : `../${theme.path}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@incredibleweirdo Is this working on Mac? Just wondering because if the other change in MarkdownPreview
was required then we should change every occurence from ../
to the absolute path.
But if it's working we can also keep it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, changing themes appears to work fine.
@Rokt33r Could this pull request be added to the upcoming milestone/release? https://github.com/BoostIO/Boostnote/milestone/6 There are a lot of likes that have been given to issues that would be fixed by this PR, so I think it's only logical for this to have a fairly high priority. |
@Rokt33r Boostnote couldn't boost my work due to this issue... so I hope you to fix this problem with high priority (Yes, This issue can fix by dirty hack, but I'll not to use it because dislike dirty hack). |
When is this fix (0.12.0) going to be available for public? |
@byegates tomorrow. :) |
Description
../
process.env
- not perfect but that way we're getting production stuff ifNODE_ENV
is not defined. I think we can fix / improve that once we improved the build process.Interface theming had a path issue as mentioned in the issue.
Editor theming should be fixed as well.
Issue fixed
#3018, #3042
Type of changes
Checklist:
Screenshot
Error message
Questions / notes
Tested