Skip to content

Commit

Permalink
Cloud login screen button section pushed to left side #132
Browse files Browse the repository at this point in the history
  • Loading branch information
twocanoes committed Dec 16, 2023
1 parent a03c7f1 commit 0a300f8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions XCredsLoginPlugIn/LoginWindow/ControlsViewController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
<rect key="frame" x="0.0" y="0.0" width="1002" height="117"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="D8S-gh-gv5">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="D8S-gh-gv5">
<rect key="frame" x="0.0" y="98" width="1002" height="19"/>
<textFieldCell key="cell" lineBreakMode="clipping" alignment="center" title="Unsupported – Visit twocanoes.com/xcreds/support for support options." drawsBackground="YES" id="bHC-M4-jfl">
<font key="font" metaFont="system" size="16"/>
<color key="textColor" name="systemBlueColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="p61-id-z2n">
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="p61-id-z2n">
<rect key="frame" x="10" y="-1" width="122" height="16"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="XCreds 1.1.1 (2000)" id="RPn-fH-Reb">
<font key="font" metaFont="system"/>
Expand Down
10 changes: 7 additions & 3 deletions XCredsLoginPlugIn/LoginWindow/MainLoginWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class MainLoginWindowController: NSWindowController,NSWindowDelegate {
var mechanism:XCredsMechanismProtocol?

override func windowDidLoad() {
TCSLogWithMark()
super.windowDidLoad()

window?.canBecomeVisibleWithoutLogin=true
Expand Down Expand Up @@ -46,7 +47,7 @@ class MainLoginWindowController: NSWindowController,NSWindowDelegate {

}
@objc fileprivate func updateWindow() {

TCSLogWithMark()
DispatchQueue.main.async{
if self.window?.isVisible ?? true {
let screenRect = NSScreen.screens[0].frame
Expand Down Expand Up @@ -105,10 +106,13 @@ class MainLoginWindowController: NSWindowController,NSWindowDelegate {
}
self.controlsViewController?.delegate=mechanism

TCSLogWithMark()
self.window?.contentView?.addSubview(controlsViewController.view)
let rect2 = NSMakeRect(0, 0, controlsViewController.view.frame.size.width,controlsViewController.view.frame.size.height)
controlsViewController.view.frame=rect2
if let width = self.window?.frame.size.width {
let rect2 = NSMakeRect(0, 0, width,controlsViewController.view.frame.size.height)
controlsViewController.view.frame=rect2

}
TCSLogWithMark("create background windows")
self.createBackground()

Expand Down
12 changes: 6 additions & 6 deletions xCreds.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1299,7 +1299,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6024;
CURRENT_PROJECT_VERSION = 6027;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1337,7 +1337,7 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6024;
CURRENT_PROJECT_VERSION = 6027;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = UXP6YEHSPW;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1457,7 +1457,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6024;
CURRENT_PROJECT_VERSION = 6027;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1494,7 +1494,7 @@
CODE_SIGN_ENTITLEMENTS = "XCreds Login Overlay/XCreds_Login_Overlay.entitlements";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6024;
CURRENT_PROJECT_VERSION = 6027;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1644,7 +1644,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6024;
CURRENT_PROJECT_VERSION = 6027;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down Expand Up @@ -1685,7 +1685,7 @@
CODE_SIGN_ENTITLEMENTS = XCreds/xCreds.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 6024;
CURRENT_PROJECT_VERSION = 6027;
DEVELOPMENT_TEAM = UXP6YEHSPW;
ENABLE_HARDENED_RUNTIME = YES;
FRAMEWORK_SEARCH_PATHS = (
Expand Down
Binary file not shown.

0 comments on commit 0a300f8

Please sign in to comment.