-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
3,001 additions
and
3,470 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
Classes/ExControls/FontList.Designer.cs → Classes/ControlsEx/FontListEx.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.ComponentModel; | ||
using System.Drawing; | ||
using System.Windows.Forms; | ||
|
||
namespace tb_vol_scroll.Classes.ControlsExt | ||
{ | ||
[ToolboxItem(true)] | ||
[ToolboxBitmap(typeof(ListView))] | ||
public class ListViewExt : ListView | ||
{ | ||
public ListViewExt() | ||
{ | ||
this.DoubleBuffered = true; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
namespace tb_vol_scroll.Classes.Helpers | ||
{ | ||
public static class Enums | ||
{ | ||
public enum MouseWheelDirection | ||
{ | ||
Up, | ||
Down, | ||
None | ||
} | ||
|
||
public enum ActionTriggerType | ||
{ | ||
RegularVolumeScroll, | ||
PreciseVolumeScroll, | ||
MuteToggleScroll, | ||
DeviceSwitchScroll, | ||
InternalEvent, | ||
AudioDisabled, | ||
AudioEnabled, | ||
ConfigurationApplied, | ||
Startup | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
using System.Collections.Generic; | ||
using System.Drawing; | ||
using System.Threading; | ||
using tbvolscroll.Forms; | ||
using tb_vol_scroll.Classes.ControlsExt; | ||
using tb_vol_scroll.Classes.Handlers; | ||
using tb_vol_scroll.Classes.Helpers; | ||
using tb_vol_scroll.Forms; | ||
|
||
namespace tbvolscroll.Classes | ||
namespace tb_vol_scroll.Classes | ||
{ | ||
public static class Globals | ||
{ | ||
private static Color defaultColor = Color.FromArgb(31, 143, 255); | ||
private static int volumeBarAutoHideTimeout; | ||
private static float dpiScale = Utils.GetDpiScale(); | ||
private static InputHandler inputHandler; | ||
private static AudioHandler audioHandler; | ||
private static bool isDisplayingVolumeBar = false; | ||
private static bool displayTrayIcon = true; | ||
private static MainForm mainForm; | ||
private static AudioPlaybackDevicesForm audioPlaybackDevicesForm; | ||
private static VolumeSliderControlForm volumeSliderControlForm; | ||
private static ConfigurationForm configurationForm; | ||
private static AudioPlaybackDevicesForm audioPlaybackDevicesForm; | ||
private static InputHandler inputHandler; | ||
private static AudioHandler audioHandler; | ||
private static ServiceControllerExt audioServiceController = new ServiceControllerExt("audiosrv"); | ||
private static Mutex appMutex; | ||
private static int textRenderingHintType; | ||
public static int VolumeBarAutoHideTimeout { get => volumeBarAutoHideTimeout; set => volumeBarAutoHideTimeout = value; } | ||
private static List<string> appArgs; | ||
|
||
private static float dpiScale = Utils.GetDpiScale(); | ||
private static readonly Color defaultColor = Color.SkyBlue; | ||
public static MainForm MainForm { get => mainForm; set => mainForm = value; } | ||
public static InputHandler InputHandler { get => inputHandler; set => inputHandler = value; } | ||
public static AudioHandler AudioHandler { get => audioHandler; set => audioHandler = value; } | ||
public static bool IsDisplayingVolumeBar { get => isDisplayingVolumeBar; set => isDisplayingVolumeBar = value; } | ||
public static MainForm MainForm { get => mainForm; set => mainForm = value; } | ||
public static AudioPlaybackDevicesForm AudioPlaybackDevicesForm { get => audioPlaybackDevicesForm; set => audioPlaybackDevicesForm = value; } | ||
public static VolumeSliderControlForm VolumeSliderControlForm { get => volumeSliderControlForm; set => volumeSliderControlForm = value; } | ||
public static Mutex AppMutex { get => appMutex; set => appMutex = value; } | ||
public static bool DisplayTrayIcon { get => displayTrayIcon; set => displayTrayIcon = value; } | ||
public static ServiceControllerExt AudioServiceController { get => audioServiceController; set => audioServiceController = value; } | ||
public static float DpiScale { get => dpiScale; set => dpiScale = value; } | ||
public static int TextRenderingHintType { get => textRenderingHintType; set => textRenderingHintType = value; } | ||
public static Color DefaultColor { get => defaultColor; set => defaultColor = value; } | ||
public static ConfigurationForm ConfigurationForm { get => configurationForm; set => configurationForm = value; } | ||
public static Mutex AppMutex { get => appMutex; set => appMutex = value; } | ||
public static bool AudioAvailable { get => AudioHandler != null && AudioHandler.IsAudioAvailable(); } | ||
public static bool InputAvailable { get => InputHandler.InputEnabled; } | ||
|
||
public static Color DefaultColor => defaultColor; | ||
|
||
public static VolumeSliderControlForm VolumeSliderControlForm { get => volumeSliderControlForm; set => volumeSliderControlForm = value; } | ||
public static List<string> AppArgs { get => appArgs; set => appArgs = value; } | ||
public static AudioPlaybackDevicesForm AudioPlaybackDevicesForm { get => audioPlaybackDevicesForm; set => audioPlaybackDevicesForm = value; } | ||
} | ||
} |
Oops, something went wrong.