Associate OPML files & file type icon

This commit is contained in:
relikd
2019-07-29 00:30:58 +02:00
parent bdc6d45a54
commit cb117c0f01
7 changed files with 48 additions and 16 deletions

View File

@@ -15,6 +15,7 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe
- Settings, Feeds: Drag & Drop feeds from / to OPML file
- Settings, Feeds: Drag & Drop feed titles and urls as text
- Accessibility hints for most UI elements
- Associate OPML files (double click and right click actions in Finder)
### Fixed
- Adding feed: Show users any 5xx server error response and extracted failure reason

View File

@@ -310,10 +310,10 @@
54D55D7222E624CD00057B98 /* SettingsFeeds+DragDrop.m */,
54F6025B21C1D4170006D338 /* OpmlFile.h */,
54F6025C21C1D4170006D338 /* OpmlFile.m */,
5478DF02225A7AE200D30C64 /* SettingsFeedsView.h */,
5478DF03225A7AE200D30C64 /* SettingsFeedsView.m */,
54E8831D211B509D00064188 /* ModalFeedEdit.h */,
54E8831E211B509D00064188 /* ModalFeedEdit.m */,
5478DF02225A7AE200D30C64 /* SettingsFeedsView.h */,
5478DF03225A7AE200D30C64 /* SettingsFeedsView.m */,
54B51702226DC339006C1B29 /* ModalFeedEditView.h */,
54B51703226DC339006C1B29 /* ModalFeedEditView.m */,
54D857CC227C5785001BA1C8 /* RefreshStatisticsView.h */,

View File

@@ -0,0 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 100">
<style type="text/css"> .bw{fill:#000;} .fg{fill:#FBA43A;} </style>
<path class="fg" d="M0,0H45Q70,0,70,25V100H0V0z"/>
<path style="fill:#FFF;" d="M5,5H45Q65,5,65,25V95H5V5z"/>
<text class="bw" x="9" y="55" style="font:bold 36px sans-serif">OP</text>
<text class="bw" x="10" y="87" style="font:bold 34px sans-serif">ML</text>
</svg>

After

Width:  |  Height:  |  Size: 438 B

View File

@@ -1,10 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 70 100">
<style type="text/css"> .bg{fill:#FFFFFF;} .fg{fill:#FBA43A;} </style>
<style type="text/css"> .bg{fill:#FFF;} .fg{fill:#FBA43A;} .bw{fill:#000;} </style>
<defs>
<symbol id="file">
<path class="fg" d="M0,0H45Q70,0,70,25V100H0V0z"/>
<path class="bg" d="M5,5H45Q65,5,65,25V95H5V5z"/>
</symbol>
<symbol id="line">
<circle class="fg" cx="15" cy="5" r="5"/>
<circle class="bg" cx="15" cy="5" r="2.5"/>
@@ -16,10 +12,10 @@
<rect class="fg" x="32" y="3.5" width="28" height="3"/>
</symbol>
</defs>
<use xlink:href="#file"/>
<text class="fg" x="10" y="90" style="font: bold 17.4px sans-serif">OPML</text>
<use xlink:href="#line" y="20"/>
<use xlink:href="#line" y="35"/>
<use xlink:href="#line2" y="49"/>
<use xlink:href="#line2" y="61"/>
<path class="fg" d="M0,0H45Q70,0,70,25V100H0V0z"/>
<path class="bg" d="M5,5H45Q65,5,65,25V95H5V5z"/>
<text class="bw" x="10" y="90" style="font: bold 17.4px sans-serif">OPML</text>
<use xlink:href="#line" y="25"/>
<use xlink:href="#line" y="40"/>
<use xlink:href="#line2" y="53"/>
</svg>

Before

Width:  |  Height:  |  Size: 935 B

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

View File

@@ -4,6 +4,34 @@
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>org.opml</string>
<key>LSHandlerRank</key>
<string>Default</string>
</dict>
</array>
<key>CFBundleTypeExtensions</key>
<array>
<string>opml</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>opml-icon</string>
<key>CFBundleTypeName</key>
<string>OPML file</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>org.opml</string>
</array>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
@@ -32,7 +60,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>9628</string>
<string>9639</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>

View File

@@ -113,8 +113,8 @@
[m addItemWithTitle:NSLocalizedString(@"New Group", nil) action:@selector(addGroup) keyEquivalent:@"g"];
[m addItemWithTitle:NSLocalizedString(@"New Separator", nil) action:@selector(addSeparator) keyEquivalent:@""];
[m addItem:[NSMenuItem separatorItem]]; // index: 6
[m addItemWithTitle:NSLocalizedString(@"Import Feeds …", nil) action:@selector(openImportDialog) keyEquivalent:@""];
[m addItemWithTitle:NSLocalizedString(@"Export Feeds …", nil) action:@selector(openExportDialog) keyEquivalent:@""];
[m addItemWithTitle:NSLocalizedString(@"Import Feeds …", nil) action:@selector(openImportDialog) keyEquivalent:@"o"];
[m addItemWithTitle:NSLocalizedString(@"Export Feeds …", nil) action:@selector(openExportDialog) keyEquivalent:@"s"];
[m addItem:[NSMenuItem separatorItem]]; // index: 9
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"