Peter Kirmeier
de483c874c
Refactored resource file management..
...
Remove use of resx file
Resource files are marked as "Resource" instead
Resources are loaded via resource dictionaries (either from code behind or XAML directly through binding)
Reduce amount of required image conversions
Also fix overlay of 50 percent transparency (is now rendered half transparent correct instead of adding "white fog")
Remove obsolete image as rendering is done directly in code
Also fix rendering of link indicator at correct image position
Also remove setting Icons of all Windows (as default is application icon anyway)
2023-08-12 02:33:11 +02:00
Peter Kirmeier
28fdd938ee
Enable search text box selection.
2023-06-04 11:34:29 +02:00
Peter Kirmeier
2b408c83bf
Fix for closing pipe upon application shutdown.
2023-06-03 21:15:13 +02:00
Peter Kirmeier
0e812d207b
Allow waking up another process when started a second time.
...
This was not possible before and was solved by sending hotkey in version 1.
In v2 it will use named pipes for IPC communication, so it don't rely on hotkeys any more.
2023-06-03 20:18:10 +02:00
Peter Kirmeier
f8f2338b73
Fix mouse position for shell context menu when menu/app key is used.
...
Mouse capture outside window mus be enabled otherwise screen 0:0 is returned.
However, we keep using native function as suggested by Mouse.GetPosition remarks.
2023-06-03 00:49:10 +02:00
Peter Kirmeier
215c263052
Refactor hotkey registration
...
Allow function registrations besides the actual hotkey registration.
2023-05-29 23:56:52 +02:00
Peter Kirmeier
ce2d9772f6
Rework hotkey registration for sharing hotkeys between objects.
...
Use colors for working, failing or unset hotkeys in HotkeySelector.
2023-05-27 18:23:01 +02:00
Peter Kirmeier
8ece540881
Centralized hotkey registration
...
Only one window handle is required for all hotkeys.
Simplifies maintaining multiple hotkeys spreaded over multiple windows.
2023-05-27 16:37:39 +02:00
Peter Kirmeier
f8d3457b13
Remove v1 hints
2023-05-24 23:47:41 +02:00
Peter Kirmeier
f55af05bc3
Fix issue that key modifiers are parsed wrong
...
(registering the hotkey might have failed)
Simplified hot key pressed events
Remove obsolete class KeyPressedEventArgs
2023-05-22 23:57:54 +02:00
Peter Kirmeier
045fb9dd7e
Improve Icon factory performance
...
Workers are by default part of MTA thread model and are CoInitialized.
This means COM calls can be made without spawning additional STA threads.
Additionally pass file icon factory for dictionary search instead of providing (potentially not used) new Icon beforehand.
2023-05-19 18:50:53 +02:00
Peter Kirmeier
6346b513d8
Merged ListViewMenuItem into RowData
2023-05-18 23:28:52 +02:00
Peter Kirmeier
e9675685ef
Separated ListViewMenuItem from Menu (former ListViewItemData)
2023-05-18 22:48:18 +02:00
Peter Kirmeier
ac311d5632
Make mainMenu not null
2023-05-18 22:16:39 +02:00
Peter Kirmeier
13b2338b11
Reorganize main objects
...
Notify icon moved into Menus class (multiple instances would get multiple icons)
Taskbar logo moved into Menus class (multiple instances would get multiple icons)
joystickHelper moved into App class (Only one watcher for gamepad inputs even when multiple Menus exist)
Simplified event calling of these classes
2023-05-18 21:25:03 +02:00
Peter Kirmeier
a1055ce31f
Rework open calls and events
2023-05-18 20:42:46 +02:00
Peter Kirmeier
e16d682d87
Rework to remove IsMainUsable
2023-05-16 20:53:01 +02:00
Peter Kirmeier
d75d183918
Remove state openCloseState and ClosePressed events by refactoring
2023-05-16 19:32:48 +02:00
Peter Kirmeier
0fb1a086bb
Shutdown immediately when configuration path is empty
2023-05-15 23:26:03 +02:00
Peter Kirmeier
7d4c40a71e
Remove deactivated flag from logic that will open/close main menu
2023-05-15 23:01:55 +02:00
Peter Kirmeier
cd5ab5aa5c
Simplified code
...
Fix potential issue of loading from wrong thread during startup
2023-05-15 22:34:17 +02:00
Peter Kirmeier
ddf91131cb
Minor selection improvement
2023-05-14 23:25:34 +02:00
Peter Kirmeier
ec045a153b
Simplified menu selection via keys
...
Avoid menu closing when going one level back via keys
2023-05-14 19:13:44 +02:00
Peter Kirmeier
5bd2c44930
Simplified and improved selection via keys
...
Reduce complexity of key handlers
Combine deselect and select events
2023-05-12 01:13:02 +02:00
Peter Kirmeier
d8a146e8ed
Simplified RowSelectionChanged
...
Fix issue of overwriting selection during key row selection process
2023-05-11 00:53:02 +02:00
Peter Kirmeier
f73a674400
Change SelectionMode to Single for ListView
2023-05-11 00:14:05 +02:00
Peter Kirmeier
fe2ab9b4ff
Improve key selections by reduced usage of Nullables types
2023-05-10 00:55:18 +02:00
Peter Kirmeier
bb198a32db
Rework ListViewItemData and RowData members
...
Improve UI updates due to unnecessary color and selection changes of menus' lists
Fix selection when going back to previous menu via key
2023-05-09 00:19:29 +02:00
Peter Kirmeier
14d0896419
Replaced internal "menus" array with chained instances.
2023-05-08 00:14:23 +02:00
Peter Kirmeier
56476e095d
Improve mouse and search item selection
2023-05-05 22:19:00 +02:00
Peter Kirmeier
97185b1989
Adjusted naming and variables for menu selection with keys
...
Remove obsolete mouse events (non active code)
2023-05-05 20:01:49 +02:00
Peter Kirmeier
189e45099c
Fix row selection loss when using keys
...
Remove some old drag and drop code (feature might be added later again)
Refactored some events to work with Menu s instead of ListView s
2023-05-05 18:52:05 +02:00
Peter Kirmeier
c7066e67f7
Refactored list selection via keys
...
Reducing code complexity and improve naming and use of nullables
2023-05-05 00:08:39 +02:00
Peter Kirmeier
9fdb708322
Refactored iRowKey to use a row's instance instead
2023-05-04 00:34:23 +02:00
Peter Kirmeier
485ef01ad0
Refactored iMenuKey to use a menu's dependencies to parent or sub menu
2023-05-03 23:18:03 +02:00
Peter Kirmeier
b93e1fb345
Minor refactoring and add gamepad button 1 as additional enter button
2023-05-03 00:34:30 +02:00
Peter Kirmeier
a7af9f610f
Fix and improve menu activation
2023-05-02 22:04:32 +02:00
Peter Kirmeier
bbdab80355
Fix index issue when selecting first "left" sub menu via key.
2023-05-01 23:46:28 +02:00
Peter Kirmeier
c7f4f44250
Replace SharpDX.DirectInput v4.2.0 with HIDDevices v3.0.1
...
This supports newer .Net version.
Also supports more gamepads like PS5 controller.
2023-05-01 16:24:33 +02:00
Peter Kirmeier
3153032110
Refine loading of colors
2023-04-30 23:36:26 +02:00
Peter Kirmeier
ea8ed05c85
Replaced System.Drawing.Color with System.Windows.Media.SolidColorBrush
2023-04-30 22:42:25 +02:00
Peter Kirmeier
6ffddc7e02
Fix menu activation when opened from notify icon
2023-04-30 00:06:00 +02:00
Peter Kirmeier
55fccd17d5
Initial use of colors for list items and buttons
2023-04-29 22:42:28 +02:00
Peter Kirmeier
aa87100095
Reduce code complexity and refined member variables
...
Improve null pointer assumptions by relying on nullable value types
2023-04-29 18:57:39 +02:00
Peter Kirmeier
5d04cc0abd
Modified message box text when exceptions occur
2023-04-29 18:52:52 +02:00
Peter Kirmeier
ab9b0ea0b0
Housekeeping, refine IconReader and fix ShellContextMenu
2023-04-28 18:48:39 +02:00
Peter Kirmeier
175c93e511
Simplified use of MainMenu and updating menus' item lists
2023-04-27 23:24:25 +02:00
Peter Kirmeier
b735ad4b46
Simplified MenuData and speedup sub menu closing
2023-04-27 22:19:02 +02:00
Peter Kirmeier
2e1cc20593
Remove RowData dependency from FolderOptions
2023-04-27 21:11:20 +02:00
Peter Kirmeier
46bd18eb7e
Removed DgvMouseRow helper class
2023-04-27 20:27:16 +02:00