mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-06-03 11:04:32 +12:00
Added fullscreen mode switch to CLI (--fullscreen).
Fullscreen and "chrome off" modes only work when cloning a thumbnail.
This commit is contained in:
parent
d83527e1f9
commit
4abb6f4a7d
|
@ -67,6 +67,10 @@ namespace OnTopReplica {
|
|||
return (FormBorderStyle == FormBorderStyle.SizableToolWindow);
|
||||
}
|
||||
set {
|
||||
//Cancel hiding chrome if no thumbnail is shown
|
||||
if (!value && !_thumbnailPanel.IsShowingThumbnail)
|
||||
return;
|
||||
|
||||
if (!value) {
|
||||
Location = new Point {
|
||||
X = Location.X + SystemInformation.FrameBorderSize.Width,
|
||||
|
|
|
@ -69,6 +69,9 @@ namespace OnTopReplica.StartupOptions {
|
|||
.Add("chromeOff", "Disables the window's chrome (border).", s => {
|
||||
options.DisableChrome = true;
|
||||
})
|
||||
.Add("fs|fullscreen", "Starts up in fullscreen mode.", s => {
|
||||
options.Fullscreen = true;
|
||||
})
|
||||
.Add("h|help|?", "Show command line help.", s => {
|
||||
options.Status = CliStatus.Information;
|
||||
});
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace OnTopReplica.StartupOptions {
|
|||
Opacity = 255;
|
||||
DisableChrome = false;
|
||||
MustBeVisible = false;
|
||||
Fullscreen = false;
|
||||
}
|
||||
|
||||
#region Position and size
|
||||
|
@ -51,6 +52,8 @@ namespace OnTopReplica.StartupOptions {
|
|||
|
||||
public bool DisableChrome { get; set; }
|
||||
|
||||
public bool Fullscreen { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Debug info
|
||||
|
@ -136,6 +139,11 @@ namespace OnTopReplica.StartupOptions {
|
|||
if (EnableClickForwarding) {
|
||||
form.ClickForwardingEnabled = true;
|
||||
}
|
||||
|
||||
//Fullscreen
|
||||
if (Fullscreen) {
|
||||
form.IsFullscreen = true;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue