4 Commits
6 changed files with 51 additions and 24 deletions

No files matched your search

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="23504" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies> <dependencies>
<deployment identifier="macosx"/> <deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22690"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="23504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -22,6 +22,7 @@
<outlet property="setsPopUp" destination="179" id="hl9-DS-qsm"/> <outlet property="setsPopUp" destination="179" id="hl9-DS-qsm"/>
<outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/> <outlet property="tagsPopUp" destination="30" id="1v4-T2-oDW"/>
<outlet property="view" destination="1" id="2"/> <outlet property="view" destination="1" id="2"/>
<outlet property="zoomSlider" destination="235" id="fFP-8i-4SK"/>
</connections> </connections>
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
@@ -131,7 +132,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target"> <tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnReordering="NO" autosaveColumns="NO" typeSelect="NO" rowHeight="14" rowSizeStyle="automatic" headerView="qXU-xB-xRF" viewBased="YES" floatsGroupRows="NO" id="qg5-r0-E4V" customClass="ExpandedTableView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="447" height="225"/> <rect key="frame" x="0.0" y="0.0" width="446" height="225"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<size key="intercellSpacing" width="3" height="2"/> <size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -175,7 +176,7 @@
</tableCellView> </tableCellView>
</prototypeCellViews> </prototypeCellViews>
</tableColumn> </tableColumn>
<tableColumn identifier="value" width="314" minWidth="40" maxWidth="4000" id="os0-Yb-exW"> <tableColumn identifier="value" width="285" minWidth="40" maxWidth="4000" id="os0-Yb-exW">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value"> <tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Value">
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
@@ -188,11 +189,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/> <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews> <prototypeCellViews>
<tableCellView identifier="TextCell" id="mjh-te-NdK"> <tableCellView identifier="TextCell" id="mjh-te-NdK">
<rect key="frame" x="127" y="1" width="318" height="14"/> <rect key="frame" x="127" y="1" width="289" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn"> <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="T0o-RG-lfn">
<rect key="frame" x="0.0" y="0.0" width="318" height="14"/> <rect key="frame" x="0.0" y="0.0" width="289" height="14"/>
<textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="WRR-52-lxo"> <textFieldCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" id="WRR-52-lxo">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -214,11 +215,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="TextCellForSizing" id="OUW-Fk-klv"> <tableCellView identifier="TextCellForSizing" id="OUW-Fk-klv">
<rect key="frame" x="127" y="17" width="318" height="14"/> <rect key="frame" x="127" y="17" width="289" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf"> <textField focusRingType="none" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" allowsCharacterPickerTouchBarItem="YES" translatesAutoresizingMaskIntoConstraints="NO" id="AmC-rT-7Rf">
<rect key="frame" x="0.0" y="0.0" width="318" height="14"/> <rect key="frame" x="0.0" y="0.0" width="289" height="14"/>
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" id="ipR-OL-rI2"> <textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" id="ipR-OL-rI2">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -237,11 +238,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="PopUpCell" id="JEU-aR-J9v" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target"> <tableCellView identifier="PopUpCell" id="JEU-aR-J9v" customClass="PopUpCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="127" y="33" width="318" height="14"/> <rect key="frame" x="127" y="33" width="289" height="14"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM"> <popUpButton translatesAutoresizingMaskIntoConstraints="NO" id="cFv-4U-VzM">
<rect key="frame" x="0.0" y="0.0" width="312" height="14"/> <rect key="frame" x="0.0" y="0.0" width="283" height="14"/>
<popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4"> <popUpButtonCell key="cell" type="bevel" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" imageScaling="proportionallyDown" inset="2" selectedItem="6Zb-NM-Mmo" id="Myn-C3-tc4">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
@@ -266,11 +267,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="BoolCell" id="DGy-Nb-PAN" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target"> <tableCellView identifier="BoolCell" id="DGy-Nb-PAN" customClass="CheckBoxCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="127" y="49" width="318" height="17"/> <rect key="frame" x="127" y="49" width="289" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh"> <button translatesAutoresizingMaskIntoConstraints="NO" id="oyk-jS-zmh">
<rect key="frame" x="2" y="-1" width="314" height="19"/> <rect key="frame" x="2" y="-1" width="285" height="19"/>
<buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6"> <buttonCell key="cell" type="check" bezelStyle="regularSquare" imagePosition="left" controlSize="small" state="on" inset="2" id="f5s-ar-fW6">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
@@ -291,11 +292,11 @@
</connections> </connections>
</tableCellView> </tableCellView>
<tableCellView identifier="ComboCell" id="vy5-48-Vip" customClass="ComboBoxCellView" customModule="Subler" customModuleProvider="target"> <tableCellView identifier="ComboCell" id="vy5-48-Vip" customClass="ComboBoxCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="127" y="68" width="318" height="17"/> <rect key="frame" x="127" y="68" width="289" height="17"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau"> <comboBox focusRingType="none" verticalHuggingPriority="750" allowsCharacterPickerTouchBarItem="YES" preferredMaxLayoutWidth="1000" translatesAutoresizingMaskIntoConstraints="NO" id="LbC-r6-Pau">
<rect key="frame" x="2" y="0.0" width="312" height="19"/> <rect key="frame" x="2" y="0.0" width="283" height="19"/>
<comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn"> <comboBoxCell key="cell" controlSize="small" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" alignment="left" usesSingleLineMode="YES" buttonBordered="NO" numberOfVisibleItems="5" id="jkg-xz-Hbn">
<font key="font" metaFont="message" size="11"/> <font key="font" metaFont="message" size="11"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -326,7 +327,7 @@
</tableView> </tableView>
</subviews> </subviews>
</clipView> </clipView>
<scroller key="horizontalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd"> <scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="tkU-nC-Bdd">
<rect key="frame" x="1" y="233" width="446" height="16"/> <rect key="frame" x="1" y="233" width="446" height="16"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
@@ -335,7 +336,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</scroller> </scroller>
<tableHeaderView key="headerView" wantsLayer="YES" id="qXU-xB-xRF"> <tableHeaderView key="headerView" wantsLayer="YES" id="qXU-xB-xRF">
<rect key="frame" x="0.0" y="0.0" width="447" height="23"/> <rect key="frame" x="0.0" y="0.0" width="446" height="23"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
</tableHeaderView> </tableHeaderView>
</scrollView> </scrollView>
+4 -1
View File
@@ -155,8 +155,11 @@ enum Prefs {
@Stored(key: "SBArtworkSelectorZoomLevel", defaultValue: 50) @Stored(key: "SBArtworkSelectorZoomLevel", defaultValue: 50)
static var artworkSelectorZoomLevel: Float static var artworkSelectorZoomLevel: Float
@Stored(key: "SBMoviewArtworkSelectorZoomLevel", defaultValue: 50) @Stored(key: "SBMovieArtworkSelectorZoomLevel", defaultValue: 50)
static var movieArtworkSelectorZoomLevel: Float static var movieArtworkSelectorZoomLevel: Float
@Stored(key: "SBPresetArtworkSelectorZoomLevel", defaultValue: 0)
static var presetArtworkSelectorZoomLevel: Float
} }
enum MetadataPrefs { enum MetadataPrefs {
+9
View File
@@ -42,6 +42,15 @@ final class PresetEditorViewController: MovieViewController {
replaceAnnotations.state = preset.replaceAnnotations == false ? .on : .off replaceAnnotations.state = preset.replaceAnnotations == false ? .on : .off
} }
override var zoomLevel: Float {
get {
Prefs.presetArtworkSelectorZoomLevel
}
set (value) {
Prefs.presetArtworkSelectorZoomLevel = value;
}
}
@IBAction func done(_ sender: Any) { @IBAction func done(_ sender: Any) {
presentingViewController?.dismiss(self) presentingViewController?.dismiss(self)
} }
+11 -2
View File
@@ -137,7 +137,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
} }
override func viewWillAppear() { override func viewWillAppear() {
let zoomValue = Prefs.movieArtworkSelectorZoomLevel let zoomValue = zoomLevel
setZoomValue(zoomValue) setZoomValue(zoomValue)
zoomSlider.floatValue = zoomValue zoomSlider.floatValue = zoomValue
} }
@@ -1262,6 +1262,15 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
} }
} }
var zoomLevel: Float {
get {
Prefs.movieArtworkSelectorZoomLevel
}
set (value) {
Prefs.movieArtworkSelectorZoomLevel = value;
}
}
private func setZoomValue(_ newZoomValue: Float) { private func setZoomValue(_ newZoomValue: Float) {
if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout { if let layout = artworksView.collectionViewLayout as? NSCollectionViewFlowLayout {
if newZoomValue == 50 { if newZoomValue == 50 {
@@ -1281,7 +1290,7 @@ class MovieViewController: PropertyView, NSTableViewDataSource, ExpandedTableVie
@IBAction func zoomSliderDidChange(_ sender: NSControl) { @IBAction func zoomSliderDidChange(_ sender: NSControl) {
setZoomValue(sender.floatValue) setZoomValue(sender.floatValue)
Prefs.movieArtworkSelectorZoomLevel = sender.floatValue zoomLevel = sender.floatValue
} }
func collectionViewDelete(in collectionView: NSCollectionView) { func collectionViewDelete(in collectionView: NSCollectionView) {
+6 -1
View File
@@ -1,9 +1,14 @@
# Subler News # Subler News
## Subler 1.8.8
- Fixed a crash that happened when editing a preset
## Subler 1.8.7 ## Subler 1.8.7
- Preserves additional metadata from Matroska - Preserves additional metadata from Matroska
- Fixed a regression tha made the "Send to queue" and "Queue" toolbar button unclickable - Fixed a regression that made the "Send to queue" and "Queue" toolbar button unclickable
## Subler 1.8.6 ## Subler 1.8.6
+4 -4
View File
@@ -1403,7 +1403,7 @@
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO; COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1.8.7; CURRENT_PROJECT_VERSION = 1.8.8;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@@ -1420,7 +1420,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 1.8.7; MARKETING_VERSION = 1.8.8;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";
@@ -1445,7 +1445,7 @@
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Mac Developer";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.8.7; CURRENT_PROJECT_VERSION = 1.8.8;
DEAD_CODE_STRIPPING = YES; DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_TEAM = ""; DEVELOPMENT_TEAM = "";
ENABLE_HARDENED_RUNTIME = YES; ENABLE_HARDENED_RUNTIME = YES;
@@ -1461,7 +1461,7 @@
"$(inherited)", "$(inherited)",
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MARKETING_VERSION = 1.8.7; MARKETING_VERSION = 1.8.8;
OTHER_CFLAGS = ""; OTHER_CFLAGS = "";
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks"; OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
OTHER_SWIFT_FLAGS = ""; OTHER_SWIFT_FLAGS = "";