Watch for gamma table interference from external app (#696)

This commit is contained in:
Istvan T 2021-10-09 21:33:22 +02:00 committed by GitHub
parent fade88ae25
commit 0a502c7c9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 236 additions and 9 deletions

BIN
.github/screenshot.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Before After
Before After

View file

@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>6581</string>
<string>6632</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>

View file

@ -13,6 +13,7 @@ class Display: Equatable {
internal var smoothBrightnessTransient: Float = 1
internal var smoothBrightnessRunning: Bool = false
internal var smoothBrightnessSlow: Bool = false
let swBrightnessSemaphore = DispatchSemaphore(value: 1)
static func == (lhs: Display, rhs: Display) -> Bool {
return lhs.identifier == rhs.identifier
@ -199,8 +200,8 @@ class Display: Equatable {
}
}
let swBrightnessSemaphore = DispatchSemaphore(value: 1)
func setSwBrightness(_ value: Float, smooth: Bool = false) -> Bool {
self.swBrightnessSemaphore.wait()
let brightnessValue = min(1, value)
var currentValue = self.readPrefAsFloat(key: .SwBrightness)
self.savePref(brightnessValue, key: .SwBrightness)
@ -209,9 +210,9 @@ class Display: Equatable {
newValue = self.swBrightnessTransform(value: newValue)
if smooth {
DispatchQueue.global(qos: .userInteractive).async {
self.swBrightnessSemaphore.wait()
for transientValue in stride(from: currentValue, to: newValue, by: 0.005 * (currentValue > newValue ? -1 : 1)) {
guard app.reconfigureID == 0 else {
self.swBrightnessSemaphore.signal()
return
}
if self.isVirtual || self.readPrefAsBool(key: .avoidGamma) {
@ -224,10 +225,10 @@ class Display: Equatable {
}
Thread.sleep(forTimeInterval: 0.001) // Let's make things quick if not performed in the background
}
self.swBrightnessSemaphore.signal()
}
} else {
if self.isVirtual || self.readPrefAsBool(key: .avoidGamma) {
self.swBrightnessSemaphore.signal()
return DisplayManager.shared.setShadeAlpha(value: 1 - newValue, displayID: self.identifier)
} else {
let gammaTableRed = self.defaultGammaTableRed.map { $0 * newValue }
@ -238,28 +239,64 @@ class Display: Equatable {
DisplayManager.shared.enforceGammaActivity()
}
}
self.swBrightnessSemaphore.signal()
return true
}
func getSwBrightness() -> Float {
self.swBrightnessSemaphore.wait()
if self.isVirtual || self.readPrefAsBool(key: .avoidGamma) {
let rawBrightnessValue = 1 - (DisplayManager.shared.getShadeAlpha(displayID: self.identifier) ?? 1)
self.swBrightnessSemaphore.signal()
return self.swBrightnessTransform(value: rawBrightnessValue, reverse: true)
}
var gammaTableRed = [CGGammaValue](repeating: 0, count: 256)
var gammaTableGreen = [CGGammaValue](repeating: 0, count: 256)
var gammaTableBlue = [CGGammaValue](repeating: 0, count: 256)
var gammaTableSampleCount: UInt32 = 0
var brightnessValue: Float = 1
if CGGetDisplayTransferByTable(self.identifier, 256, &gammaTableRed, &gammaTableGreen, &gammaTableBlue, &gammaTableSampleCount) == CGError.success {
let redPeak = gammaTableRed.max() ?? 0
let greenPeak = gammaTableGreen.max() ?? 0
let bluePeak = gammaTableBlue.max() ?? 0
let gammaTablePeak = max(redPeak, greenPeak, bluePeak)
let peakRatio = gammaTablePeak / self.defaultGammaTablePeak
let brightnessValue = round(self.swBrightnessTransform(value: peakRatio, reverse: true) * 256) / 256
return brightnessValue
brightnessValue = round(self.swBrightnessTransform(value: peakRatio, reverse: true) * 256) / 256
}
self.swBrightnessSemaphore.signal()
return brightnessValue
}
func checkGammaInterference() {
let currentSwBrightness = self.getSwBrightness()
guard !DisplayManager.shared.gammaInterferenceWarningShown, !(prefs.bool(forKey: PrefKey.disableSoftwareFallback.rawValue) && prefs.bool(forKey: PrefKey.disableCombinedBrightness.rawValue)), !self.readPrefAsBool(key: .avoidGamma), !self.smoothBrightnessRunning, self.prefExists(key: .SwBrightness), abs(currentSwBrightness - self.readPrefAsFloat(key: .SwBrightness)) > 0.02 else {
return
}
DisplayManager.shared.gammaInterferenceCounter += 1
_ = self.setSwBrightness(1)
os_log("Gamma table interference detected, number of events: %{public}@", type: .debug, String(DisplayManager.shared.gammaInterferenceCounter))
if DisplayManager.shared.gammaInterferenceCounter >= 3 {
DisplayManager.shared.gammaInterferenceWarningShown = true
let alert = NSAlert()
alert.messageText = NSLocalizedString("Is f.lux or similar running?", comment: "Shown in the alert dialog")
alert.informativeText = NSLocalizedString("An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!", comment: "Shown in the alert dialog")
alert.addButton(withTitle: NSLocalizedString("I'll quit the other app", comment: "Shown in the alert dialog"))
alert.addButton(withTitle: NSLocalizedString("Disable gamma control for my displays", comment: "Shown in the alert dialog"))
alert.alertStyle = NSAlert.Style.critical
if alert.runModal() != .alertFirstButtonReturn {
for otherDisplay in DisplayManager.shared.getOtherDisplays() {
_ = otherDisplay.setSwBrightness(1)
_ = otherDisplay.setDirectBrightness(1)
otherDisplay.savePref(true, key: .avoidGamma)
_ = otherDisplay.setSwBrightness(1)
DisplayManager.shared.gammaInterferenceWarningShown = false
DisplayManager.shared.gammaInterferenceCounter = 0
displaysPrefsVc?.loadDisplayList()
}
} else {
os_log("We won't watch for gamma table interference anymore", type: .debug)
}
}
return 1
}
func resetSwBrightness() -> Bool {

View file

@ -327,6 +327,11 @@ class OtherDisplay: Display {
}
}
override func setBrightness(_ to: Float = -1, slow: Bool = false) -> Bool {
self.checkGammaInterference()
return super.setBrightness(to, slow: slow)
}
override func setDirectBrightness(_ to: Float, transient: Bool = false) -> Bool {
let value = max(min(to, 1), 0)
if !self.isSw() {
@ -341,7 +346,9 @@ class OtherDisplay: Display {
brightnessSwValue = (value / self.combinedBrightnessSwitchingValue())
}
_ = self.writeDDCValues(command: .brightness, value: self.convValueToDDC(for: .brightness, from: brightnessValue))
_ = self.setSwBrightness(brightnessSwValue)
if self.readPrefAsFloat(key: .SwBrightness) != brightnessSwValue {
_ = self.setSwBrightness(brightnessSwValue)
}
} else {
_ = self.writeDDCValues(command: .brightness, value: self.convValueToDDC(for: .brightness, from: value))
}

View file

@ -131,6 +131,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
os_log("Request for configuration with reconfigreID %{public}@", type: .info, String(dispatchedReconfigureID))
self.reconfigureID = 0
DisplayManager.shared.gammaInterferenceCounter = 0
DisplayManager.shared.configureDisplays()
DisplayManager.shared.addDisplayCounterSuffixes()
DisplayManager.shared.updateArm64AVServices()

View file

@ -11,6 +11,8 @@ class DisplayManager {
var audioControlTargetDisplays: [OtherDisplay] = []
let ddcQueue = DispatchQueue(label: "DDC queue")
let gammaActivityEnforcer = NSWindow(contentRect: .init(origin: NSPoint(x: 0, y: 0), size: .init(width: DEBUG_GAMMA_ENFORCER ? 15 : 1, height: DEBUG_GAMMA_ENFORCER ? 15 : 1)), styleMask: [], backing: .buffered, defer: false)
var gammaInterferenceCounter = 0
var gammaInterferenceWarningShown = false
func createGammaActivityEnforcer() {
self.gammaActivityEnforcer.title = "Monior Control Gamma Activity Enforcer"

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "Über";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App Menü";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Verringern";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Monitore";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Inkompatible Vorgängerversion";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Tastatur";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "About";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Decrease";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Displays";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Incompatible previous version";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Keyboard";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "Acerca de";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Decrease";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Pantallas";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Incompatible previous version";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Keyboard";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "À Propos";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "Menu de l'app";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Diminuer";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Écrans";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Matériel (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Version précédente incompatible";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Clavier";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "Névjegy";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "Menü";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Csökkentés";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Kijelzők";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardver (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Inkompatibilis előző verzió";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Billentyűzet";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "Informazioni";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Diminiusci";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Monitor";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Versione precedente incompatibile";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Tastiera";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "About";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Decrease";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "画面";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Incompatible previous version";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Keyboard";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "정보";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "앱 메뉴";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "감소";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "디스플레이";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "하드웨어 (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "호환되지 않는 이전 버전";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "키보드";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "Over";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Verminderen";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Schermen";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Incompatibele vorige versie";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Toetsenbord";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "Informacje";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Decrease";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Wyświetlacze";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Incompatible previous version";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Keyboard";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "О приложении";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Decrease";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Дисплеи";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Аппаратно (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Incompatible previous version";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Keyboard";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "Hakkında";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "Uygulama Menüsü";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Azalt";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Ekranlar";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Donanım (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Uyumsuz önceki versiyon";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Klavye";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "About";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App menu";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "Decrease";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "Displays";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "Hardware (DDC)";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "Incompatible previous version";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "Keyboard";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "关于";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App选项";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "降低";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "显示器";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "硬件DDC";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "不兼容旧版本";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "键盘";

View file

@ -1,6 +1,9 @@
/* Shown in the main prefs window */
"About" = "關於";
/* Shown in the alert dialog */
"An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!" = "An other app seems to change the brightness or colors which causes issues.\n\nTo solve this, you need to quit the other app or disable gamma control for your displays in MonitorControl!";
/* Shown in the main prefs window */
"App menu" = "App選單";
@ -34,6 +37,9 @@
/* Shown in record shortcut box */
"Decrease" = "減少";
/* Shown in the alert dialog */
"Disable gamma control for my displays" = "Disable gamma control for my displays";
/* Shown in the main prefs window */
"Displays" = "螢幕";
@ -52,6 +58,9 @@
/* Shown in the Display Preferences */
"Hardware (DDC)" = "硬體DDC";
/* Shown in the alert dialog */
"I'll quit the other app" = "I'll quit the other app";
/* Shown in the alert dialog */
"Incompatible previous version" = "與先前版本不相容";
@ -61,6 +70,9 @@
/* Intel designation (shown after the version number in Preferences) */
"Intel" = "Intel";
/* Shown in the alert dialog */
"Is f.lux or similar running?" = "Is f.lux or similar running?";
/* Shown in the main prefs window */
"Keyboard" = "鍵盤";

View file

@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>6581</string>
<string>6632</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSBackgroundOnly</key>