Skip to content

Commit 0ca27d2

Browse files
Merge pull request #128 from vineetchoudhary/develop
Added dark mode in QR Code
2 parents e5ba4ef + ffddb16 commit 0ca27d2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

AppBox/ViewController/QRCodeViewController/QRCodeViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ - (void)viewDidLoad {
3131
if (result){
3232
ZXImage *zxImage = [ZXImage imageWithMatrix: result
3333
onColor: NSColor.labelColor.CGColor
34-
offColor: NSColor.windowBackgroundColor.CGColor];
34+
offColor: NSColor.clearColor.CGColor];
3535
NSImage *image = [[NSImage alloc] initWithCGImage:[zxImage cgimage] size:NSMakeSize(250, 250)];
3636
[imageViewQRCode setImage:image];
3737
}else{

AppBox/ViewController/Storyboard/Main.storyboard

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,19 +2065,19 @@ Gw
20652065
<objects>
20662066
<viewController title="showQRCode" storyboardIdentifier="QRCodeViewController" id="YHW-mV-vBN" customClass="QRCodeViewController" sceneMemberID="viewController">
20672067
<view key="view" id="A9H-aC-ojk">
2068-
<rect key="frame" x="0.0" y="0.0" width="290" height="324"/>
2068+
<rect key="frame" x="0.0" y="0.0" width="250" height="294"/>
20692069
<autoresizingMask key="autoresizingMask"/>
20702070
<subviews>
20712071
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="OYV-KN-ZoG">
2072-
<rect key="frame" x="20" y="20" width="250" height="250"/>
2072+
<rect key="frame" x="0.0" y="0.0" width="250" height="250"/>
20732073
<constraints>
20742074
<constraint firstAttribute="height" constant="250" id="891-6U-DTS"/>
20752075
<constraint firstAttribute="width" constant="250" id="fzf-D6-KWp"/>
20762076
</constraints>
20772077
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="h6i-uE-IVy"/>
20782078
</imageView>
20792079
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Zdd-fC-88g">
2080-
<rect key="frame" x="18" y="291" width="127" height="23"/>
2080+
<rect key="frame" x="18" y="261" width="127" height="23"/>
20812081
<constraints>
20822082
<constraint firstAttribute="height" constant="23" id="D6M-cz-r7h"/>
20832083
</constraints>
@@ -2088,10 +2088,10 @@ Gw
20882088
</textFieldCell>
20892089
</textField>
20902090
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="Ay4-5O-MOc">
2091-
<rect key="frame" x="10" y="278" width="270" height="5"/>
2091+
<rect key="frame" x="10" y="248" width="230" height="5"/>
20922092
</box>
20932093
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="H7k-0y-RPv">
2094-
<rect key="frame" x="227" y="285" width="49" height="32"/>
2094+
<rect key="frame" x="187" y="255" width="49" height="32"/>
20952095
<buttonCell key="cell" type="push" title="X" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="gaZ-72-mhP">
20962096
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
20972097
<font key="font" metaFont="system"/>
@@ -2105,17 +2105,17 @@ Gw
21052105
</button>
21062106
</subviews>
21072107
<constraints>
2108-
<constraint firstAttribute="bottom" secondItem="OYV-KN-ZoG" secondAttribute="bottom" constant="20" id="0Id-g0-LCB"/>
2108+
<constraint firstAttribute="bottom" secondItem="OYV-KN-ZoG" secondAttribute="bottom" id="0Id-g0-LCB"/>
21092109
<constraint firstItem="Zdd-fC-88g" firstAttribute="top" secondItem="A9H-aC-ojk" secondAttribute="top" constant="10" id="3Yj-mG-Rxb"/>
21102110
<constraint firstAttribute="trailing" secondItem="Ay4-5O-MOc" secondAttribute="trailing" constant="10" id="NZD-VE-Lfk"/>
21112111
<constraint firstItem="Zdd-fC-88g" firstAttribute="leading" secondItem="A9H-aC-ojk" secondAttribute="leading" constant="20" id="O07-35-6UU"/>
21122112
<constraint firstAttribute="trailing" secondItem="H7k-0y-RPv" secondAttribute="trailing" constant="20" id="Rfg-Om-Lc3"/>
21132113
<constraint firstItem="Ay4-5O-MOc" firstAttribute="top" secondItem="Zdd-fC-88g" secondAttribute="bottom" constant="10" id="Rsi-zL-7h3"/>
21142114
<constraint firstItem="Ay4-5O-MOc" firstAttribute="leading" secondItem="A9H-aC-ojk" secondAttribute="leading" constant="10" id="VCn-Ly-NDH"/>
2115-
<constraint firstAttribute="trailing" secondItem="OYV-KN-ZoG" secondAttribute="trailing" constant="20" id="VSf-sl-KwJ"/>
2115+
<constraint firstAttribute="trailing" secondItem="OYV-KN-ZoG" secondAttribute="trailing" id="VSf-sl-KwJ"/>
21162116
<constraint firstItem="Zdd-fC-88g" firstAttribute="centerY" secondItem="H7k-0y-RPv" secondAttribute="centerY" id="dx2-kC-J2v"/>
2117-
<constraint firstItem="OYV-KN-ZoG" firstAttribute="top" secondItem="Ay4-5O-MOc" secondAttribute="bottom" constant="10" id="jFi-BE-N6Z"/>
2118-
<constraint firstItem="OYV-KN-ZoG" firstAttribute="leading" secondItem="A9H-aC-ojk" secondAttribute="leading" constant="20" id="s5l-vF-HSU"/>
2117+
<constraint firstItem="OYV-KN-ZoG" firstAttribute="top" secondItem="Ay4-5O-MOc" secondAttribute="bottom" id="jFi-BE-N6Z"/>
2118+
<constraint firstItem="OYV-KN-ZoG" firstAttribute="leading" secondItem="A9H-aC-ojk" secondAttribute="leading" id="s5l-vF-HSU"/>
21192119
</constraints>
21202120
</view>
21212121
<connections>

0 commit comments

Comments
 (0)