Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
overtake committed Sep 24, 2021
1 parent 2be464d commit 75edbb9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion Telegram-Mac/CallNavigationHeaderView.swift
Expand Up @@ -578,7 +578,7 @@ class CallHeaderBasicView : NavigationHeaderView {
fileprivate let endCall:ImageButton = ImageButton()
fileprivate let statusTextView:TextView = TextView()
fileprivate let muteControl:ImageButton = ImageButton()

fileprivate let capView = View()
let disposable = MetaDisposable()
let hideDisposable = MetaDisposable()

Expand Down Expand Up @@ -648,6 +648,7 @@ class CallHeaderBasicView : NavigationHeaderView {

backgroundView.frame = bounds
backgroundView.wantsLayer = true
addSubview(capView)
addSubview(backgroundView)
addSubview(container)
statusTextView.backgroundColor = .clear
Expand Down Expand Up @@ -736,6 +737,8 @@ class CallHeaderBasicView : NavigationHeaderView {
override func layout() {
super.layout()

capView.frame = NSMakeRect(0, 0, frame.width, height)

backgroundView.frame = bounds
container.frame = NSMakeRect(0, 0, frame.width, height)
muteControl.centerY(x:18)
Expand All @@ -750,6 +753,7 @@ class CallHeaderBasicView : NavigationHeaderView {
override func updateLocalizationAndTheme(theme: PresentationTheme) {
super.updateLocalizationAndTheme(theme: theme)
let theme = (theme as! TelegramPresentationTheme)
self.capView.backgroundColor = theme.colors.background
endCall.set(image: theme.icons.callInlineDecline, for: .Normal)
endCall.set(image: theme.icons.callInlineDecline, for: .Highlight)
_ = endCall.sizeToFit(NSMakeSize(10, 10), thatFit: false)
Expand Down
2 changes: 1 addition & 1 deletion Telegram-Mac/Info.plist
Expand Up @@ -36,7 +36,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>221843</string>
<string>221856</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.social-networking</string>
<key>LSFileQuarantineEnabled</key>
Expand Down
2 changes: 1 addition & 1 deletion Telegram-Mac/MainViewController.swift
Expand Up @@ -699,7 +699,7 @@ class MainViewController: TelegramViewController {

override func updateFrame(_ frame: NSRect, animated: Bool) {
super.updateFrame(frame, animated: animated)
self.tabController.updateFrame(frame, animated: animated)
self.tabController.updateFrame(frame.size.bounds, animated: animated)
}

override init(_ context: AccountContext) {
Expand Down
2 changes: 1 addition & 1 deletion TelegramShare/Info.plist
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>221843</string>
<string>221856</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
Expand Down

0 comments on commit 75edbb9

Please sign in to comment.