Skip to content
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

Title bar title is difficult to see when using a dark theme #15

Open
markmals opened this issue Sep 1, 2018 · 5 comments
Open

Title bar title is difficult to see when using a dark theme #15

markmals opened this issue Sep 1, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@markmals
Copy link

markmals commented Sep 1, 2018

This may be fixed in Mojave and irrelevant soon, but on High Sierra, if you use a dark theme and the "modern title bar" option, the title of the window/document is very difficult (or impossible) to see.

screen shot 2018-09-01 at 12 20 54 am

@lukakerr
Copy link
Owner

lukakerr commented Sep 4, 2018

I'm running Mojave beta currently and don't have this issue. I suspect it's due to my logic in the MarkdownView updateUI function:

https://github.com/lukakerr/twig/blob/4429da189a56e499408766d0d36d0bd15bf2ff82/Twig/Views/MarkdownView.swift#L17-L56

I don't have another machine running a non-beta macOS version currently, so this may be hard to fix until I do

@markmals
Copy link
Author

markmals commented Sep 4, 2018

If you're not planning on supporting High Sierra at launch, then I wouldn't worry about it. If you are, then I can take a look and see if I can figure out what's causing it.

@lukakerr
Copy link
Owner

lukakerr commented Sep 4, 2018

I do plan on supporting Sierra and High Sierra, so I’ll definitely try to fix it. I should be able to get my hands on another laptop though, but if you’re keen to take a look that would be great

@markmals
Copy link
Author

markmals commented Sep 5, 2018

I was going to try to fix it, but I can't figure my way around a linker bug in cmark-gfm-swift that prevents the project from building:

Ld /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Products/Debug/cmark-gfm-swift/cmark_gfm_swift.framework/Versions/A/cmark_gfm_swift normal x86_64 (in target: cmark-gfm-swift)
    cd /Users/orion/Documents/Design\ &\ Dev/Repos/twig/Pods
    export MACOSX_DEPLOYMENT_TARGET=10.12
    /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -dynamiclib -isysroot /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -L/Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Products/Debug/cmark-gfm-swift -F/Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Products/Debug/cmark-gfm-swift -filelist /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/cmark_gfm_swift.LinkFileList -install_name @rpath/cmark_gfm_swift.framework/Versions/A/cmark_gfm_swift -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mmacosx-version-min=10.12 -Xlinker -object_path_lto -Xlinker /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/cmark_gfm_swift_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -Xlinker -add_ast_path -Xlinker /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/cmark_gfm_swift.swiftmodule -framework Cocoa -compatibility_version 1 -current_version 1 -Xlinker -dependency_info -Xlinker /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/cmark_gfm_swift_dependency_info.dat -o /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Products/Debug/cmark-gfm-swift/cmark_gfm_swift.framework/Versions/A/cmark_gfm_swift

duplicate symbol _cmark_render_code_point in:
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/render 2.o
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/render.o
duplicate symbol _cmark_render in:
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/render 2.o
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/render.o
duplicate symbol _cmark_render_ascii in:
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/render 2.o
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/render.o
duplicate symbol _cmark_render_xml_with_mem in:
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/xml 2.o
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/xml.o
duplicate symbol _cmark_render_xml in:
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/xml 2.o
    /Users/orion/Library/Developer/Xcode/DerivedData/Twig-czrdmwcuyzfjeselfmztkjviadql/Build/Intermediates.noindex/Pods.build/Debug/cmark-gfm-swift.build/Objects-normal/x86_64/xml.o
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@lukakerr
Copy link
Owner

lukakerr commented Sep 5, 2018

Hmm I haven't seen an error like that before. Try and see if any of the answers here help: https://stackoverflow.com/questions/24298144/duplicate-symbols-for-architecture-x86-64-under-xcode

@lukakerr lukakerr added the hacktoberfest Possible Hacktoberfest issue label Oct 6, 2018
@lukakerr lukakerr added bug Something isn't working and removed hacktoberfest Possible Hacktoberfest issue labels Feb 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants