UI improvements: widget profile selector table
This commit is contained in:
@@ -3157,33 +3157,40 @@
|
||||
<viewControllerLayoutGuide type="top" id="osA-Uy-SE1"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="8ja-wQ-jbJ"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="PlJ-LJ-d1p">
|
||||
<view key="view" opaque="NO" contentMode="scaleToFill" id="PlJ-LJ-d1p">
|
||||
<rect key="frame" x="0.0" y="0.0" width="1133" height="744"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView opaque="NO" clearsContextBeforeDrawing="NO" alpha="0.5" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="BA3-hd-bDp">
|
||||
<rect key="frame" x="198.5" y="60" width="736" height="634"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tableView>
|
||||
<navigationBar clipsSubviews="YES" alpha="0.69999999999999996" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="62V-DN-FUk">
|
||||
<rect key="frame" x="198.5" y="60" width="736" height="44"/>
|
||||
<navigationBar clipsSubviews="YES" alpha="0.77500000000000002" contentMode="scaleToFill" translucent="NO" translatesAutoresizingMaskIntoConstraints="NO" id="62V-DN-FUk">
|
||||
<rect key="frame" x="226.5" y="61" width="680" height="44"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="lQr-5u-g05"/>
|
||||
</constraints>
|
||||
<color key="barTintColor" red="0.81960784310000001" green="0.81960784310000001" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<textAttributes key="titleTextAttributes">
|
||||
<fontDescription key="fontDescription" style="UICTFontTextStyleTitle3"/>
|
||||
<color key="textColor" systemColor="systemGray5Color"/>
|
||||
</textAttributes>
|
||||
<textAttributes key="largeTitleTextAttributes">
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</textAttributes>
|
||||
<items>
|
||||
<navigationItem title="Widget Profiles" largeTitleDisplayMode="never" style="editor" id="Q2V-XF-4jq">
|
||||
<navigationItem id="Q2V-XF-4jq">
|
||||
<leftBarButtonItems>
|
||||
<barButtonItem title="ExportAll" width="70" style="plain" id="Bhn-IO-Wlt" userLabel="Export Data">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="exportDataTapped:" destination="Atv-Nj-0qv" id="pwG-sO-9he"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
<barButtonItem title="Import" width="48" style="plain" id="CpY-Sb-BDc" userLabel="Import Data">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="importDataTapped:" destination="Atv-Nj-0qv" id="Uq0-Ct-LbS"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
<barButtonItem title="Restore" width="45" style="plain" id="czn-mj-8d1">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="restoreTapped:" destination="Atv-Nj-0qv" id="IvQ-c3-bmW"/>
|
||||
</connections>
|
||||
@@ -3191,11 +3198,13 @@
|
||||
</leftBarButtonItems>
|
||||
<rightBarButtonItems>
|
||||
<barButtonItem title="Duplicate" width="80" style="plain" id="P34-hO-6cX">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="duplicateTapped:" destination="Atv-Nj-0qv" id="Ymg-8q-iIc"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
<barButtonItem title="Delete" width="80" style="plain" id="egC-9E-zS4" userLabel="Delete">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="deleteTapped:" destination="Atv-Nj-0qv" id="UpR-VB-qez"/>
|
||||
</connections>
|
||||
@@ -3204,14 +3213,18 @@
|
||||
</navigationItem>
|
||||
</items>
|
||||
</navigationBar>
|
||||
<tableView opaque="NO" clearsContextBeforeDrawing="NO" alpha="0.5" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="BA3-hd-bDp">
|
||||
<rect key="frame" x="226.5" y="105" width="680" height="589"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tableView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="62V-DN-FUk" firstAttribute="top" secondItem="BA3-hd-bDp" secondAttribute="top" id="600-lH-rte"/>
|
||||
<constraint firstItem="62V-DN-FUk" firstAttribute="width" secondItem="PlJ-LJ-d1p" secondAttribute="width" multiplier="0.65" id="OWL-Yd-KfG"/>
|
||||
<constraint firstItem="62V-DN-FUk" firstAttribute="bottom" secondItem="BA3-hd-bDp" secondAttribute="top" id="600-lH-rte"/>
|
||||
<constraint firstItem="62V-DN-FUk" firstAttribute="width" secondItem="PlJ-LJ-d1p" secondAttribute="width" multiplier="0.6" id="OWL-Yd-KfG"/>
|
||||
<constraint firstItem="BA3-hd-bDp" firstAttribute="centerX" secondItem="PlJ-LJ-d1p" secondAttribute="centerX" id="Xte-bA-pFb"/>
|
||||
<constraint firstItem="BA3-hd-bDp" firstAttribute="width" secondItem="PlJ-LJ-d1p" secondAttribute="width" multiplier="0.65" id="eQf-gF-6kX"/>
|
||||
<constraint firstItem="BA3-hd-bDp" firstAttribute="top" secondItem="PlJ-LJ-d1p" secondAttribute="top" constant="60" id="eje-7O-RaF"/>
|
||||
<constraint firstItem="BA3-hd-bDp" firstAttribute="width" secondItem="PlJ-LJ-d1p" secondAttribute="width" multiplier="0.6" id="eQf-gF-6kX"/>
|
||||
<constraint firstItem="BA3-hd-bDp" firstAttribute="top" secondItem="PlJ-LJ-d1p" secondAttribute="top" constant="105" id="eje-7O-RaF"/>
|
||||
<constraint firstItem="BA3-hd-bDp" firstAttribute="bottom" secondItem="PlJ-LJ-d1p" secondAttribute="bottom" constant="-50" id="j96-Mz-xiG"/>
|
||||
<constraint firstItem="62V-DN-FUk" firstAttribute="centerX" secondItem="PlJ-LJ-d1p" secondAttribute="centerX" id="qmh-Pp-B9S"/>
|
||||
</constraints>
|
||||
@@ -3227,7 +3240,7 @@
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="K4u-Tz-tXU" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="3712" y="958"/>
|
||||
<point key="canvasLocation" x="3711.8705035971225" y="957.52066115702485"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
@@ -3244,19 +3257,22 @@
|
||||
<image name="tray.full.fill" catalog="system" width="128" height="88"/>
|
||||
<image name="video.and.waveform" catalog="system" width="128" height="94"/>
|
||||
<systemColor name="linkColor">
|
||||
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemBackgroundColor">
|
||||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemBrownColor">
|
||||
<color red="0.63529411759999999" green="0.51764705879999995" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.67450980392156867" green="0.49803921568627452" blue="0.36862745098039218" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemGray3Color">
|
||||
<color red="0.78039215689999997" green="0.78039215689999997" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.7803921568627451" green="0.7803921568627451" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemGray5Color">
|
||||
<color red="0.89803921568627454" green="0.89803921568627454" blue="0.91764705882352937" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemTealColor">
|
||||
<color red="0.18823529410000001" green="0.69019607839999997" blue="0.78039215689999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.0" green="0.76470588235294112" blue="0.81568627450980391" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
</resources>
|
||||
</document>
|
||||
|
||||
@@ -950,29 +950,33 @@
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView opaque="NO" clearsContextBeforeDrawing="NO" alpha="0.5" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="kTH-ez-aKD">
|
||||
<rect key="frame" x="80" y="112" width="692" height="261"/>
|
||||
<rect key="frame" x="80" y="156" width="692" height="217"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<color key="sectionIndexBackgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tableView>
|
||||
<navigationBar alpha="0.69999999999999996" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zsA-6X-Qc5">
|
||||
<navigationBar alpha="0.77500000000000002" contentMode="scaleToFill" translucent="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zsA-6X-Qc5">
|
||||
<rect key="frame" x="80" y="112" width="692" height="44"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="R90-2b-UrU"/>
|
||||
</constraints>
|
||||
<color key="barTintColor" red="0.81960784310000001" green="0.81960784310000001" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<items>
|
||||
<navigationItem title="Controller & Widget Profiles" id="5pN-Sn-SCN">
|
||||
<navigationItem style="editor" id="5pN-Sn-SCN">
|
||||
<leftBarButtonItems>
|
||||
<barButtonItem title="ExportAll" id="D9X-7p-9oc">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="exportDataTapped:" destination="0K8-kQ-xlN" id="Sam-Ct-kqC"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
<barButtonItem title="Import" id="Z9M-yq-an2">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="importDataTapped:" destination="0K8-kQ-xlN" id="OaF-8j-7Wy"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
<barButtonItem title="Restore" id="sUC-Ur-7eI">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="restoreTapped:" destination="0K8-kQ-xlN" id="lAJ-eO-ez7"/>
|
||||
</connections>
|
||||
@@ -980,11 +984,13 @@
|
||||
</leftBarButtonItems>
|
||||
<rightBarButtonItems>
|
||||
<barButtonItem title="Duplicate" width="80" style="plain" id="bue-hp-CWD">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="duplicateTapped:" destination="0K8-kQ-xlN" id="Gb7-bx-nxp"/>
|
||||
</connections>
|
||||
</barButtonItem>
|
||||
<barButtonItem title="Delete" width="80" style="plain" id="ghM-zc-sr6">
|
||||
<color key="tintColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<action selector="deleteTapped:" destination="0K8-kQ-xlN" id="h6N-Gl-oiW"/>
|
||||
</connections>
|
||||
@@ -1002,12 +1008,13 @@
|
||||
<constraint firstItem="kTH-ez-aKD" firstAttribute="leading" secondItem="bTO-bs-q93" secondAttribute="leading" constant="80" id="Ujg-Sw-4hq"/>
|
||||
<constraint firstAttribute="trailing" secondItem="zsA-6X-Qc5" secondAttribute="trailing" constant="80" id="YKK-qs-mZR"/>
|
||||
<constraint firstItem="zsA-6X-Qc5" firstAttribute="top" secondItem="bTO-bs-q93" secondAttribute="topMargin" constant="16" id="gZg-eJ-rnP"/>
|
||||
<constraint firstItem="kTH-ez-aKD" firstAttribute="top" secondItem="zsA-6X-Qc5" secondAttribute="top" id="txs-Df-ANQ"/>
|
||||
<constraint firstItem="kTH-ez-aKD" firstAttribute="top" secondItem="zsA-6X-Qc5" secondAttribute="bottom" id="txs-Df-ANQ"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<size key="freeformSize" width="852" height="393"/>
|
||||
<connections>
|
||||
<outlet property="profileTableViewNavigationBar" destination="zsA-6X-Qc5" id="13u-ks-fVC"/>
|
||||
<outlet property="profileTableViewNavigationItem" destination="5pN-Sn-SCN" id="Ybc-XZ-vcP"/>
|
||||
<outlet property="tableView" destination="kTH-ez-aKD" id="pqR-CC-Kfh"/>
|
||||
</connections>
|
||||
</viewController>
|
||||
@@ -3105,16 +3112,16 @@
|
||||
<image name="trash.fill" catalog="system" width="117" height="128"/>
|
||||
<image name="tray.full.fill" catalog="system" width="128" height="88"/>
|
||||
<systemColor name="linkColor">
|
||||
<color red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.0" green="0.47843137254901963" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemBrownColor">
|
||||
<color red="0.63529411759999999" green="0.51764705879999995" blue="0.36862745099999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.67450980392156867" green="0.49803921568627452" blue="0.36862745098039218" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemGray2Color">
|
||||
<color red="0.68235294120000001" green="0.68235294120000001" blue="0.69803921570000005" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.68235294117647061" green="0.68235294117647061" blue="0.69803921568627447" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
<systemColor name="systemTealColor">
|
||||
<color red="0.18823529410000001" green="0.69019607839999997" blue="0.78039215689999997" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<color red="0.0" green="0.76470588235294112" blue="0.81568627450980391" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
</systemColor>
|
||||
</resources>
|
||||
</document>
|
||||
|
||||
@@ -57,6 +57,7 @@ const double NAV_BAR_HEIGHT = 50;
|
||||
|
||||
|
||||
- (void) viewDidLayoutSubviews {
|
||||
/*
|
||||
CGRect bounds = self.profileTableViewNavigationBar.bounds;
|
||||
CGSize cornerSize = CGSizeMake(15, 15);
|
||||
|
||||
@@ -69,17 +70,29 @@ const double NAV_BAR_HEIGHT = 50;
|
||||
CAShapeLayer *maskLayer = [CAShapeLayer layer];
|
||||
maskLayer.frame = bounds;
|
||||
maskLayer.path = path.CGPath;
|
||||
*/
|
||||
|
||||
self.profileTableViewNavigationBar.layer.cornerRadius = 15; // 设置圆角半径
|
||||
self.profileTableViewNavigationBar.layer.maskedCorners = kCALayerMinXMinYCorner|kCALayerMaxXMinYCorner;
|
||||
|
||||
|
||||
self.profileTableViewNavigationBar.layer.masksToBounds = true; // 使圆角生效
|
||||
self.profileTableViewNavigationBar.layer.mask = maskLayer;
|
||||
if (GenericUtils.liquidGlassEnabled) {
|
||||
if (@available(iOS 13.0, *)) {
|
||||
self.profileTableViewNavigationBar.layer.backgroundColor = UIColor.systemFillColor.CGColor;
|
||||
}
|
||||
// self.profileTableViewNavigationBar.layer.mask = maskLayer;
|
||||
|
||||
self.tableView.layer.cornerRadius = 15;
|
||||
self.tableView.layer.maskedCorners = kCALayerMinXMaxYCorner|kCALayerMaxXMaxYCorner;
|
||||
self.tableView.layer.masksToBounds = true;
|
||||
|
||||
tableView.separatorStyle = (GenericUtils.isIPhone&&GenericUtils.liquidGlassEnabled) ? UITableViewCellSeparatorStyleSingleLine : UITableViewCellSeparatorStyleSingleLine;
|
||||
tableView.separatorInset = UIEdgeInsetsMake(0, 15, 0, 15);
|
||||
|
||||
if(GenericUtils.liquidGlassEnabled){
|
||||
tableView.separatorColor = [UIColor.whiteColor colorWithAlphaComponent:GenericUtils.isIPhone ? 0.28 : 0.165];
|
||||
}
|
||||
else{
|
||||
tableView.separatorColor = [UIColor.whiteColor colorWithAlphaComponent:0.3];
|
||||
}
|
||||
|
||||
self.tableView.layer.cornerRadius = 15; // 设置圆角半径
|
||||
self.tableView.layer.masksToBounds = true; // 使圆角生效
|
||||
}
|
||||
|
||||
- (void) viewDidLoad {
|
||||
@@ -89,16 +102,16 @@ const double NAV_BAR_HEIGHT = 50;
|
||||
|
||||
profilesManager = [OSCProfilesManager sharedManager:_layoutViewBounds];
|
||||
|
||||
self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, NAV_BAR_HEIGHT)];
|
||||
self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
|
||||
|
||||
self.tableView.delegate = self;
|
||||
self.tableView.dataSource = self;
|
||||
|
||||
[self.tableView registerNib:[UINib nibWithNibName:@"ProfileTableViewCell" bundle:nil]
|
||||
forCellReuseIdentifier:@"Cell"]; // Register the custom cell nib file with the table view
|
||||
self.tableView.alpha = 0.7;
|
||||
self.tableView.alpha = 1;
|
||||
//self.tableView.backgroundColor = [[UIColor colorWithRed:0.5 green:0.7 blue:1.0 alpha:1.0] colorWithAlphaComponent:0.2]; // set background color & transparency
|
||||
self.tableView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.5]; // set background color & transparency
|
||||
self.tableView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.43]; // set background color & transparency
|
||||
// self.tableView.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.2]; // set background color & transparency
|
||||
|
||||
UITapGestureRecognizer *tap =
|
||||
@@ -108,7 +121,7 @@ const double NAV_BAR_HEIGHT = 50;
|
||||
tap.delegate = (id<UIGestureRecognizerDelegate>)self;
|
||||
|
||||
[self.view addGestureRecognizer:tap];
|
||||
|
||||
|
||||
if(GenericUtils.liquidGlassEnabled){
|
||||
if (@available(iOS 26.0, *)) {
|
||||
for(UIBarButtonItem* button in self.profileTableViewNavigationItem.leftBarButtonItems){
|
||||
@@ -129,7 +142,7 @@ const double NAV_BAR_HEIGHT = 50;
|
||||
[super viewDidAppear: animated];
|
||||
|
||||
|
||||
self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, NAV_BAR_HEIGHT)];
|
||||
self.tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
|
||||
self.tableView.delegate = self;
|
||||
self.tableView.dataSource = self;
|
||||
|
||||
@@ -346,11 +359,11 @@ didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls {
|
||||
cell.name.text = profile.name;
|
||||
cell.name.backgroundColor = [UIColor clearColor];
|
||||
cell.name.alpha = 1.0;
|
||||
cell.name.textColor = [UIColor whiteColor]; // Opaque white text
|
||||
cell.name.font =[UIFont systemFontOfSize:20 weight:UIFontWeightMedium];
|
||||
cell.name.textColor = [UIColor.whiteColor colorWithAlphaComponent:GenericUtils.isIPhone ? 0.9 : 0.9]; // Opaque white text
|
||||
cell.name.font =[UIFont systemFontOfSize:GenericUtils.isIPhone ? 18.5 : 18.5 weight:UIFontWeightMedium];
|
||||
cell.name.shadowColor = [UIColor blackColor]; // Black shadow
|
||||
// Set the shadow offset
|
||||
cell.name.shadowOffset = CGSizeMake(1.0, 1.5);
|
||||
cell.name.shadowOffset = CGSizeMake(0.5, 0.5);
|
||||
|
||||
// Set cell and contentView background colors
|
||||
cell.backgroundColor = [UIColor clearColor];
|
||||
@@ -364,21 +377,9 @@ didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls {
|
||||
}
|
||||
|
||||
// Remove existing custom separators to avoid duplicates
|
||||
UIView *existingSeparator = [cell.contentView viewWithTag:100];
|
||||
if (existingSeparator) {
|
||||
[existingSeparator removeFromSuperview];
|
||||
}
|
||||
|
||||
// Add custom separator with increased height (thickness)
|
||||
CGFloat separatorHeight = 1.0; // Adjust this value for thicker line
|
||||
UIView *separatorView = [[UIView alloc] initWithFrame:CGRectMake(0, cell.contentView.frame.size.height - separatorHeight, cell.contentView.frame.size.width, separatorHeight)];
|
||||
|
||||
separatorView.backgroundColor = [UIColor whiteColor]; // Set your desired color
|
||||
separatorView.tag = 100; // Assign a tag to identify the separator view
|
||||
separatorView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
|
||||
|
||||
[cell.contentView addSubview:separatorView];
|
||||
[cell.contentView bringSubviewToFront:separatorView];
|
||||
// [cell.contentView addSubview:separatorView];
|
||||
// [cell.contentView bringSubviewToFront:separatorView];
|
||||
|
||||
// Replace the default checkmark with a UILabel displaying a checkmark character
|
||||
if (indexPath.row == [profilesManager getIndexOfSelectedProfile]) {
|
||||
@@ -392,9 +393,6 @@ didPickDocumentsAtURLs:(NSArray<NSURL *> *)urls {
|
||||
} else {
|
||||
cell.accessoryView = nil; // Remove checkmark if not selected
|
||||
}
|
||||
[cell.contentView bringSubviewToFront:separatorView];
|
||||
separatorView.layer.zPosition = 1; // Bring separator to the top layer
|
||||
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
@@ -4742,7 +4742,7 @@
|
||||
},
|
||||
"Q2V-XF-4jq.title" : {
|
||||
"comment" : "Class = \"UINavigationItem\"; title = \"Widget Profiles\"; ObjectID = \"Q2V-XF-4jq\";",
|
||||
"extractionState" : "extracted_with_value",
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
|
||||
@@ -344,30 +344,30 @@
|
||||
}
|
||||
},
|
||||
"5pN-Sn-SCN.title" : {
|
||||
"comment" : "Class = \"UINavigationItem\"; title = \"Controller & Widget Profiles\"; ObjectID = \"5pN-Sn-SCN\";",
|
||||
"extractionState" : "extracted_with_value",
|
||||
"comment" : "Class = \"UINavigationItem\"; title = \"Widget Profiles\"; ObjectID = \"5pN-Sn-SCN\";",
|
||||
"extractionState" : "stale",
|
||||
"localizations" : {
|
||||
"en" : {
|
||||
"stringUnit" : {
|
||||
"state" : "new",
|
||||
"value" : "Controller & Widget Profiles"
|
||||
"value" : "Widget Profiles"
|
||||
}
|
||||
},
|
||||
"zh-Hans" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"state" : "needs_review",
|
||||
"value" : "屏显控件布局"
|
||||
}
|
||||
},
|
||||
"zh-Hant" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"state" : "needs_review",
|
||||
"value" : "螢幕小工具佈局"
|
||||
}
|
||||
},
|
||||
"zh-HK" : {
|
||||
"stringUnit" : {
|
||||
"state" : "translated",
|
||||
"state" : "needs_review",
|
||||
"value" : "螢幕小工具佈局"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user