Improve ocr prefs ui.

This commit is contained in:
Damiano Galassi committed 2019-06-01 15:08:15 +02:00
1 parent d010867205
commit 53e6f2e34d
3 files changed
+18 -14

No files matched your search

+2 -2
View File
@@ -46,7 +46,7 @@
<action selector="setPrefView:" target="-2" id="Wer-vH-QP9"/>
</connections>
</toolbarItem>
<toolbarItem implicitItemIdentifier="E563B234-18F6-4A09-9F56-4BB6C8F6A93E" explicitItemIdentifier="TOOLBAR_OCR" label="OCR" paletteLabel="OCR" tag="-1" image="NSEveryone" selectable="YES" id="btg-Uy-o7I">
<toolbarItem implicitItemIdentifier="E563B234-18F6-4A09-9F56-4BB6C8F6A93E" explicitItemIdentifier="TOOLBAR_OCR" label="OCR" paletteLabel="OCR" tag="-1" image="NSFontPanel" selectable="YES" id="btg-Uy-o7I">
<connections>
<action selector="setPrefView:" target="-2" id="rii-FH-ihc"/>
</connections>
@@ -75,8 +75,8 @@
</objects>
<resources>
<image name="NSAdvanced" width="32" height="32"/>
<image name="NSEveryone" width="32" height="32"/>
<image name="NSFolderSmart" width="32" height="32"/>
<image name="NSFontPanel" width="32" height="32"/>
<image name="NSPreferencesGeneral" width="32" height="32"/>
<image name="NSUserAccounts" width="32" height="32"/>
<image name="mp4-file" width="32" height="32"/>
+1 -1
View File
@@ -19,7 +19,7 @@ class OCRTableCellView : NSTableCellView {
case .available:
actionButton.title = NSLocalizedString("Get", comment: "")
case .downloading:
actionButton.title = NSLocalizedString("Cancel", comment: "")
actionButton.title = NSLocalizedString("Cancel Download", comment: "")
case .downloaded:
actionButton.title = NSLocalizedString("Remove", comment: "")
}
+15 -11
View File
@@ -18,21 +18,21 @@
<rect key="frame" x="0.0" y="0.0" width="480" height="314"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<scrollView autohidesScrollers="YES" horizontalLineScroll="20" horizontalPageScroll="10" verticalLineScroll="20" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QYE-NI-76o">
<scrollView autohidesScrollers="YES" horizontalLineScroll="21" horizontalPageScroll="10" verticalLineScroll="21" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QYE-NI-76o">
<rect key="frame" x="20" y="62" width="440" height="232"/>
<clipView key="contentView" id="OFf-eT-AOX">
<rect key="frame" x="1" y="1" width="438" height="230"/>
<rect key="frame" x="1" y="0.0" width="438" height="231"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="18" rowSizeStyle="automatic" viewBased="YES" id="eSu-XV-7Vu">
<rect key="frame" x="0.0" y="0.0" width="438" height="230"/>
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" rowHeight="19" rowSizeStyle="automatic" headerView="7KU-Cc-YiM" viewBased="YES" id="eSu-XV-7Vu">
<rect key="frame" x="0.0" y="0.0" width="440" height="206"/>
<autoresizingMask key="autoresizingMask"/>
<size key="intercellSpacing" width="3" height="2"/>
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
<tableColumns>
<tableColumn width="435" minWidth="40" maxWidth="1000" id="7YG-8f-1AH">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Trained languages">
<tableColumn width="437" minWidth="40" maxWidth="1000" id="7YG-8f-1AH">
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Language data files">
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
@@ -45,11 +45,11 @@
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
<prototypeCellViews>
<tableCellView identifier="languageItem" id="lSD-av-rXp" customClass="OCRTableCellView" customModule="Subler" customModuleProvider="target">
<rect key="frame" x="1" y="1" width="435" height="18"/>
<rect key="frame" x="1" y="1" width="437" height="19"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<textField horizontalHuggingPriority="249" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="Fec-S0-J1M">
<rect key="frame" x="87" y="1" width="348" height="17"/>
<rect key="frame" x="87" y="2" width="350" height="17"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" title="Table View Cell" id="Zhz-YB-L6R">
<font key="font" metaFont="system"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
@@ -57,7 +57,7 @@
</textFieldCell>
</textField>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lhm-Hc-3on">
<rect key="frame" x="-2" y="-6" width="90" height="27"/>
<rect key="frame" x="-2" y="-5" width="90" height="27"/>
<constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="80" id="WJc-b5-b3e"/>
</constraints>
@@ -72,7 +72,7 @@
</subviews>
<constraints>
<constraint firstItem="Fec-S0-J1M" firstAttribute="top" secondItem="lSD-av-rXp" secondAttribute="top" id="9uf-fA-xpv"/>
<constraint firstAttribute="bottom" secondItem="Fec-S0-J1M" secondAttribute="bottom" constant="1" id="QLG-Ww-AZo"/>
<constraint firstAttribute="bottom" secondItem="Fec-S0-J1M" secondAttribute="bottom" constant="2" id="QLG-Ww-AZo"/>
<constraint firstItem="Fec-S0-J1M" firstAttribute="leading" secondItem="Lhm-Hc-3on" secondAttribute="trailing" constant="6" id="UsK-RG-vQJ"/>
<constraint firstItem="Lhm-Hc-3on" firstAttribute="leading" secondItem="lSD-av-rXp" secondAttribute="leading" constant="3" id="cOX-ia-Azj"/>
<constraint firstAttribute="trailing" secondItem="Fec-S0-J1M" secondAttribute="trailing" constant="2" id="duf-r8-sa5"/>
@@ -96,7 +96,7 @@
<constraints>
<constraint firstAttribute="height" constant="232" id="B0d-iH-QVk"/>
</constraints>
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="C8S-5f-eDe">
<scroller key="horizontalScroller" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="C8S-5f-eDe">
<rect key="frame" x="1" y="215" width="438" height="16"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
@@ -104,6 +104,10 @@
<rect key="frame" x="224" y="17" width="15" height="102"/>
<autoresizingMask key="autoresizingMask"/>
</scroller>
<tableHeaderView key="headerView" id="7KU-Cc-YiM">
<rect key="frame" x="0.0" y="0.0" width="440" height="25"/>
<autoresizingMask key="autoresizingMask"/>
</tableHeaderView>
</scrollView>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="86L-qx-fhB">
<rect key="frame" x="18" y="20" width="444" height="34"/>