From bd1185376275b24ac00404c1f36c041e8ebb5e47 Mon Sep 17 00:00:00 2001 From: suchinton2001 Date: Thu, 26 Oct 2023 18:11:52 +0530 Subject: agl-demo-control-panel: Add Fullscreen / maximized option V1: - Add fullscreen flag in config.ini to hide the header bar and launch the control-center in fullscreen mode. V2: - Write default user-session config if not found in config.ini Bug-AGL: SPEC-4948 Signed-off-by: suchinton2001 Change-Id: I549390711cdda95f99ee166d99c302176d105f1f --- extras/UI_Handeler.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extras/UI_Handeler.py') diff --git a/extras/UI_Handeler.py b/extras/UI_Handeler.py index fa2c3a8..a44cf1a 100644 --- a/extras/UI_Handeler.py +++ b/extras/UI_Handeler.py @@ -32,6 +32,11 @@ block_subscription_updates = False class UI_Handeler(MainWindow): + def fullscreen(self): + self.headerContainer.hide() + self.setAttribute(QtCore.Qt.WA_TranslucentBackground, False) + self.showFullScreen() + def display_sending_message(self): print("message sent") -- cgit