plyght's own C++ browser for macOS
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

up

plyght 08544c74 431149c7

+46 -7
+12
CMakeLists.txt
··· 86 86 set_target_properties(pocb PROPERTIES 87 87 MACOSX_BUNDLE_GUI_IDENTIFIER lol.plyght.pocb 88 88 MACOSX_BUNDLE_BUNDLE_NAME pocb 89 + MACOSX_BUNDLE_ICON_FILE pcob 89 90 MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION} 90 91 MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} 91 92 ) 93 + 94 + if(APPLE) 95 + add_custom_command(TARGET pocb POST_BUILD 96 + COMMAND ${CMAKE_COMMAND} -E make_directory "$<TARGET_BUNDLE_DIR:pocb>/Contents/Resources" 97 + COMMAND /usr/bin/xcrun actool "${CMAKE_SOURCE_DIR}/icons/pcob.icon" --app-icon pcob --compile "$<TARGET_BUNDLE_DIR:pocb>/Contents/Resources" --output-partial-info-plist "$<TARGET_BUNDLE_DIR:pocb>/Contents/Resources/assetcatalog_generated_info.plist" --minimum-deployment-target 11.0 --platform macosx --target-device mac 98 + COMMAND /bin/chmod u+w "$<TARGET_BUNDLE_DIR:pocb>/Contents/Info.plist" 99 + COMMAND /usr/bin/plutil -replace CFBundleIconFile -string pcob "$<TARGET_BUNDLE_DIR:pocb>/Contents/Info.plist" 100 + COMMAND /usr/bin/plutil -replace CFBundleIconName -string pcob "$<TARGET_BUNDLE_DIR:pocb>/Contents/Info.plist" 101 + VERBATIM 102 + ) 103 + endif() 92 104 93 105 if(APPLE AND TARGET Qt6::QCocoaIntegrationPlugin) 94 106 get_target_property(_qt_qmake Qt6::qmake IMPORTED_LOCATION)
+13
pocb-white.svg
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <svg width="290px" height="440px" viewBox="0 0 290 440" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 3 + <title>pocb</title> 4 + <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 5 + <g id="pocb"> 6 + <rect id="Rectangle" fill="color(display-p3 1.000 1.000 1.000)" x="0" y="0" width="60" height="440"></rect> 7 + <rect id="Rectangle" fill="color(display-p3 1.000 1.000 1.000)" x="0" y="0" width="290" height="60"></rect> 8 + <rect id="Rectangle" fill="color(display-p3 1.000 1.000 1.000)" x="230" y="1.42108547e-14" width="60" height="250"></rect> 9 + <path d="M0,190 L290,190 L290,234.409717 L290,250 L0,250 L0,190 Z" id="Rectangle" fill="color(display-p3 1.000 1.000 1.000)"></path> 10 + <rect id="Rectangle" stroke="color(display-p3 1.000 1.000 1.000)" stroke-width="40" x="115" y="298" width="155" height="122"></rect> 11 + </g> 12 + </g> 13 + </svg>
+13
pocb.svg
··· 1 + <?xml version="1.0" encoding="UTF-8"?> 2 + <svg width="290px" height="440px" viewBox="0 0 290 440" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 3 + <title>pocb</title> 4 + <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 5 + <g id="pocb"> 6 + <rect id="Rectangle" fill="color(display-p3 0.000 0.000 0.000)" x="0" y="0" width="60" height="440"></rect> 7 + <rect id="Rectangle" fill="color(display-p3 0.000 0.000 0.000)" x="0" y="0" width="290" height="60"></rect> 8 + <rect id="Rectangle" fill="color(display-p3 0.000 0.000 0.000)" x="230" y="1.42108547e-14" width="60" height="250"></rect> 9 + <path d="M0,190 L290,190 L290,234.409717 L290,250 L0,250 L0,190 Z" id="Rectangle" fill="color(display-p3 0.000 0.000 0.000)"></path> 10 + <rect id="Rectangle" stroke="color(display-p3 0.000 0.000 0.000)" stroke-width="40" x="115" y="298" width="155" height="122"></rect> 11 + </g> 12 + </g> 13 + </svg>
+7 -6
src/mac/Vibrancy.mm
··· 27 27 v.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable; 28 28 return v; 29 29 } 30 + NSComparisonResult compareBehindVibrancySubviews(__kindof NSView *a, __kindof NSView *b, void *) { 31 + const BOOL av = [a isKindOfClass:[NSVisualEffectView class]] && [a.identifier isEqualToString:@"PocbBehindVibrancy"]; 32 + const BOOL bv = [b isKindOfClass:[NSVisualEffectView class]] && [b.identifier isEqualToString:@"PocbBehindVibrancy"]; 33 + if (av == bv) return NSOrderedSame; 34 + return av ? NSOrderedAscending : NSOrderedDescending; 35 + } 30 36 } // namespace 31 37 #endif 32 38 ··· 162 168 for (NSView *sub in view.subviews) { 163 169 if ([sub isKindOfClass:[NSVisualEffectView class]] && 164 170 [sub.identifier isEqualToString:@"PocbBehindVibrancy"]) { 165 - [view sortSubviewsUsingFunction:[](NSView *a, NSView *b, void *) -> NSComparisonResult { 166 - const BOOL av = [a isKindOfClass:[NSVisualEffectView class]] && [a.identifier isEqualToString:@"PocbBehindVibrancy"]; 167 - const BOOL bv = [b isKindOfClass:[NSVisualEffectView class]] && [b.identifier isEqualToString:@"PocbBehindVibrancy"]; 168 - if (av == bv) return NSOrderedSame; 169 - return av ? NSOrderedAscending : NSOrderedDescending; 170 - } context:nullptr]; 171 + [view sortSubviewsUsingFunction:compareBehindVibrancySubviews context:nullptr]; 171 172 return; 172 173 } 173 174 }
+1 -1
src/web/WebView.mm
··· 400 400 QColor color; 401 401 if (s && s.length > 0) { 402 402 QString qs = QString::fromNSString(s).trimmed(); 403 - color.setNamedColor(qs); 403 + color = QColor::fromString(qs); 404 404 if (!color.isValid()) { 405 405 static const QRegularExpression re( 406 406 "rgba?\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(?:,\\s*([0-9.]+)\\s*)?\\)");