2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Added initial implementation touchbar.

This commit is contained in:
23rd
2019-04-29 16:41:51 +03:00
committed by John Preston
parent a49806bf79
commit 58604406f8
9 changed files with 362 additions and 7 deletions

View File

@@ -26,6 +26,11 @@ enum class SystemSettingsType {
Audio,
};
enum class TouchBarType {
AudioPlayer,
None,
};
void SetWatchingMediaKeys(bool watching);
bool IsApplicationActive();
void SetApplicationIcon(const QIcon &icon);
@@ -40,6 +45,8 @@ void RequestPermission(PermissionType type, Fn<void(PermissionStatus)> resultCal
void OpenSystemSettingsForPermission(PermissionType type);
bool OpenSystemSettings(SystemSettingsType type);
void SetTouchBar(TouchBarType type);
[[nodiscard]] QString SystemLanguage();
[[nodiscard]] QString SystemCountry();