New show-santa-logo (green and grumpy) option
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
- New show-santa-logo (green and grumpy) option.
|
||||||
- New quick bookmark feature, see manual.
|
- New quick bookmark feature, see manual.
|
||||||
- Fix crash choosing Matroska edition in the menu.
|
- Fix crash choosing Matroska edition in the menu.
|
||||||
- Fix auto-play not working with user scripts.
|
- Fix auto-play not working with user scripts.
|
||||||
|
|||||||
@@ -521,9 +521,12 @@ Color theme used in light mode. Default: light
|
|||||||
|
|
||||||
#### --show-logo=\<yes|no\>
|
#### --show-logo=\<yes|no\>
|
||||||
|
|
||||||
Draws the blue mpv.net logo ontop of the native OSC logo.
|
Draws the blue mpv.net logo ontop of the native OSC logo. Default: yes
|
||||||
Changes take effect after application restart. Default: yes
|
|
||||||
|
|
||||||
|
#### --show-santa-logo=\<yes|no\>
|
||||||
|
|
||||||
|
Draws the blue mpv.net logo with a santa hat in december,
|
||||||
|
the option is called green and grumpy in mpv. Default: yes
|
||||||
|
|
||||||
External Tools
|
External Tools
|
||||||
--------------
|
--------------
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ namespace mpvnet
|
|||||||
public static bool RememberVolume { get; set; } = true;
|
public static bool RememberVolume { get; set; } = true;
|
||||||
public static bool RememberWindowPosition { get; set; }
|
public static bool RememberWindowPosition { get; set; }
|
||||||
public static bool ShowLogo { get; set; } = true;
|
public static bool ShowLogo { get; set; } = true;
|
||||||
|
public static bool ShowSantaLogo { get; set; } = true;
|
||||||
|
|
||||||
public static int StartThreshold { get; set; } = 1500;
|
public static int StartThreshold { get; set; } = 1500;
|
||||||
public static int RecentCount { get; set; } = 15;
|
public static int RecentCount { get; set; } = 15;
|
||||||
@@ -252,6 +253,7 @@ namespace mpvnet
|
|||||||
case "remember-volume": RememberVolume = value == "yes"; return true;
|
case "remember-volume": RememberVolume = value == "yes"; return true;
|
||||||
case "remember-window-position": RememberWindowPosition = value == "yes"; return true;
|
case "remember-window-position": RememberWindowPosition = value == "yes"; return true;
|
||||||
case "show-logo": ShowLogo = value == "yes"; return true;
|
case "show-logo": ShowLogo = value == "yes"; return true;
|
||||||
|
case "show-santa-logo": ShowSantaLogo = value == "yes"; return true;
|
||||||
case "start-size": StartSize = value; return true;
|
case "start-size": StartSize = value; return true;
|
||||||
case "start-threshold": StartThreshold = value.ToInt(); return true;
|
case "start-threshold": StartThreshold = value.ToInt(); return true;
|
||||||
case "video-file-extensions": CorePlayer.VideoTypes = value.Split(" ,;".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); return true;
|
case "video-file-extensions": CorePlayer.VideoTypes = value.Split(" ,;".ToCharArray(), StringSplitOptions.RemoveEmptyEntries); return true;
|
||||||
|
|||||||
@@ -1301,7 +1301,6 @@ namespace mpvnet
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
bool december = DateTime.Now.Month == 12;
|
bool december = DateTime.Now.Month == 12;
|
||||||
|
|
||||||
Rectangle cr = MainForm.Instance.ClientRectangle;
|
Rectangle cr = MainForm.Instance.ClientRectangle;
|
||||||
int len = Convert.ToInt32(cr.Height / (december ? 4.5 : 5));
|
int len = Convert.ToInt32(cr.Height / (december ? 4.5 : 5));
|
||||||
|
|
||||||
@@ -1315,7 +1314,7 @@ namespace mpvnet
|
|||||||
gx.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
gx.InterpolationMode = InterpolationMode.HighQualityBicubic;
|
||||||
gx.Clear(Color.Black);
|
gx.Clear(Color.Black);
|
||||||
Rectangle rect = new Rectangle(0, 0, len, len);
|
Rectangle rect = new Rectangle(0, 0, len, len);
|
||||||
Bitmap bmp2 = december ? Properties.Resources.mpvnet_santa : Properties.Resources.mpvnet;
|
Bitmap bmp2 = (december && App.ShowSantaLogo) ? Properties.Resources.mpvnet_santa : Properties.Resources.mpvnet;
|
||||||
gx.DrawImage(bmp2, rect);
|
gx.DrawImage(bmp2, rect);
|
||||||
BitmapData bd = bmp.LockBits(rect, ImageLockMode.ReadOnly, PixelFormat.Format32bppPArgb);
|
BitmapData bd = bmp.LockBits(rect, ImageLockMode.ReadOnly, PixelFormat.Format32bppPArgb);
|
||||||
int x = Convert.ToInt32((cr.Width - len) / (december ? 1.95 : 2));
|
int x = Convert.ToInt32((cr.Width - len) / (december ? 1.95 : 2));
|
||||||
|
|||||||
@@ -702,3 +702,13 @@ help = Draws the blue mpv.net logo ontop of the native OSC logo.
|
|||||||
|
|
||||||
option = yes
|
option = yes
|
||||||
option = no
|
option = no
|
||||||
|
|
||||||
|
[setting]
|
||||||
|
name = show-santa-logo
|
||||||
|
file = mpvnet
|
||||||
|
default = yes
|
||||||
|
filter = UI
|
||||||
|
help = Draws the blue mpv.net logo with a santa hat in december, the option is called green and grumpy in mpv.
|
||||||
|
|
||||||
|
option = yes
|
||||||
|
option = no
|
||||||
|
|||||||
Reference in New Issue
Block a user