36 Commits

Author SHA1 Message Date
Ido Ben-Hur
715302ad0b GameBar: CustomSeekBarPreference: Adapt to A16/QPR2 2026-01-08 04:04:08 +09:00
87c858068a Revert "GameBar: Removed Minus and Plus Icons and Fixed Thumb Color (Black Middle Issue)"
This reverts commit a93d4c971e.
2026-01-08 04:03:28 +09:00
kenway214
92b9c2df5d GameBar: Implemented show/hide launcher icon 2026-01-03 22:20:06 +05:30
kenway214
cb21c2d1b8 GameBar: Reset warning preference when resetting to defaults
Clear the 'dont_show_longpress_warning' preference when user
resets GameBar to factory defaults

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-06 13:30:32 +05:30
kenway214
ce4c1e41fc GameBar: Add warning dialog when changing long press from Load Preset
Implement user-friendly warning when changing long press function
away from Load Preset to help users understand the impact.

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-06 13:30:32 +05:30
kenway214
b51e95e1ec GameBar: Change default long press function to Load Preset
Changed default long press gesture from 'Open Settings' to 'Load Preset'
for better user experience and quick access to preset switching.

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-06 13:30:32 +05:30
kenway214
821267eaf4 GameBar: Add quick preset loader overlay for gesture shortcuts
Implement floating preset selector that appears on gesture trigger,
allowing quick preset loading without opening the app.

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-06 13:30:32 +05:30
kenway214
6753f5376d GameBar: Fix background transparency to allow fully transparent at alpha 0
The background alpha slider had a minimum value of 16 hardcoded,
preventing users from achieving a fully transparent background.

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-05 02:31:59 +05:30
kenway214
4b5d51e507 GameBar: Fix preset load UI refresh using ActivityResult pattern
The broadcast-based approach wasn't reliably refreshing the UI when
loading presets from PresetManagementActivity. The broadcast was sent
but the activity finished immediately, causing timing issues.

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-05 02:29:14 +05:30
kenway214
0bc5a6cee1 GameBar: Implement import preset from backup functionality
Add file picker integration to import presets from JSON backups

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-05 02:29:14 +05:30
kenway214
e07a286344 GameBar: Add reset to default settings option
Implement factory reset functionality for GameBar settings

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-05 02:29:14 +05:30
kenway214
30aff2892d GameBar: Add configuration preset management system
Implement a comprehensive preset system that allows users to save,
load, export, and manage their GameBar configurations. This enables
quick switching between different settings profiles and backup/restore
functionality.

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-05 02:29:14 +05:30
kenway214
a6e053e2e3 GameBar: Properly organize hardcoded strings for localization
Move all hardcoded user-facing strings to strings.xml resource file
to enable future multi-language support. This includes toast messages,
dialog titles, button labels, and other UI text elements.

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-05 02:29:06 +05:30
kenway214
55fcc0a04c GameBar: Add screen recording support and add "take screen record" in gesture quick actions menu
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-03 03:19:38 +05:30
kenway214
71cdb5b6a2 Gamebar: Implement "no action" in gesture quick actions menu
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-03 03:19:38 +05:30
kenway214
f02dbfe9fc Gamebar: Implement "take screenshot" in gesture quick actions menu
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-03 03:19:38 +05:30
kenway214
05b030340d GameBar: Rework single tap, double tap, and long press gesture
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-03 03:19:38 +05:30
kenway214
738025891c GameBar: Introduce advanced fps stats
Basic and advanced mode
Advanced mode has avg fps +1% low+0.1%low .. using last 100 samples

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-03 03:19:33 +05:30
kenway214
a2d5da4a3f GameBar: Clean up excessive debug logging 2025-11-02 22:10:36 +05:30
NurKeinNeid
760ed5d4c6 GameBar: Fix ColorPickerDialog to persist color selection and close dialog
Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
2025-11-01 12:43:20 +05:30
kenway214
a0c31d726e GameBar: Add missing ViewGroup import for font optimization
Add missing import that was needed for the applyTypefaceToOverlay()
method introduced in the previous commit.
2025-11-01 12:42:11 +05:30
NurKeinNeid
c46cd8ce51 GameBar: Optimize font update process to prevent overlay flicker
Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
2025-11-01 12:41:56 +05:30
kenway214
00f7c2ccb5 GameBar: Add search box to font selector with filtering functionality
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-11-01 12:36:47 +05:30
NurKeinNeid
1ff7211d1f GameBar: Fix typeface reference to use explicit class context
Signed-off-by: NurKeinNeid <nurkeinneid@derpfest.org>
2025-11-01 11:28:52 +05:30
kenway214
4e65bbe4f1 GameBar: Implement overlay font customisations (wip)
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-31 02:42:46 +05:30
kenway214
8a413e1cd2 GameBar: Implement overlay background color customisations
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-31 02:42:44 +05:30
kenway214
7df9971814 GameBar: Use theme accent color for category headers instead of white
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-31 02:42:44 +05:30
kenway214
840b8af34b GameBar: Implement custom color preset and Implement reset option (wip)
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-31 02:42:44 +05:30
kenway214
575f02a50b GameBar: Implement ColorPicker for customisations
* added colorpicker from https://github.com/jaredrummler/ColorPicker for better customisations and visibility

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-31 02:42:44 +05:30
kenway214
a93d4c971e GameBar: Removed Minus and Plus Icons and Fixed Thumb Color (Black Middle Issue)
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-31 02:42:44 +05:30
kenway214
8c9f8f617c GameBar: fixup: Switch to material expressive design
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-31 02:42:44 +05:30
klozz
82cb10c59e GameBar: Add dynamic CPU temp detection
- Replace static overlays with runtime detection for CPU temp sensors
- Add smart temperature format detection and caching
- Support multiple device manufacturers and kernel variants
  (still need testing on older devices just was tested on 5.4(lahaina),5.10(taro),6.1(Pineapple) platforms

include more sepolicy and clean some for our project

Change-Id: Iaa0714b6df687203644a13da03ad048472c40164
Signed-off-by: klozz <carlosj@klozz.dev>
2025-10-30 07:54:07 +05:30
klozz
0c3cb7f448 gamebar: Refactor hardware monitoring to use dynamic sysfs detection
- Remove device-specific overlay dependencies for sysfs paths
- Add SysfsDetector utility with automatic path discovery
- Implement smart temperature format detection
  - Detect temperature format (milli/deci/centi-Celsius) automatically
- Support OnePlus, Samsung and other manufacturers automatically
- Add performance caching for detected paths
- Update GameBarConfig to use dynamic detection

Change-Id: I45109ad728fab4108ed9a82ee74b08bb967aa1e1
Signed-off-by: klozz <carlosj@klozz.dev>
2025-10-30 07:54:00 +05:30
Ghosuto
d48f51d2ab GameBar: Switch to material expressive design
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2025-10-26 00:04:05 +05:30
kenway214
605c66b093 GameBar: Add device overlay support and comprehensive documentation
- Implement GameBarConfig for centralized hardware path management
- Replace hardcoded sysfs paths with configurable resources
- Add config.xml with device-specific overlay support
- Update CPU/GPU/RAM/Battery info classes to use config
- README guide with build/integration guide

Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-24 21:33:58 +05:30
kenway214
aca1b4d4ed Initial Import
Signed-off-by: kenway214 <kenway214@outlook.com>
2025-10-24 20:18:59 +05:30