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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user