mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-01-22 18:02:16 +00:00
.icons file extension
This commit is contained in:
parent
00cd41ea92
commit
6cdb8cb025
2 changed files with 22 additions and 12 deletions
|
@ -32,10 +32,10 @@
|
|||
this.btnclose = new System.Windows.Forms.Button();
|
||||
this.btnreset = new System.Windows.Forms.Button();
|
||||
this.btnapply = new System.Windows.Forms.Button();
|
||||
this.flbody = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.lbcurrentpage = new System.Windows.Forms.Label();
|
||||
this.btnprev = new System.Windows.Forms.Button();
|
||||
this.btnnext = new System.Windows.Forms.Button();
|
||||
this.flbody = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.flowLayoutPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -91,16 +91,6 @@
|
|||
this.btnapply.UseVisualStyleBackColor = true;
|
||||
this.btnapply.Click += new System.EventHandler(this.btnapply_Click);
|
||||
//
|
||||
// flbody
|
||||
//
|
||||
this.flbody.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flbody.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
this.flbody.Location = new System.Drawing.Point(0, 0);
|
||||
this.flbody.Name = "flbody";
|
||||
this.flbody.Size = new System.Drawing.Size(393, 416);
|
||||
this.flbody.TabIndex = 1;
|
||||
this.flbody.WrapContents = false;
|
||||
//
|
||||
// lbcurrentpage
|
||||
//
|
||||
this.lbcurrentpage.AutoSize = true;
|
||||
|
@ -134,6 +124,16 @@
|
|||
this.btnnext.UseVisualStyleBackColor = true;
|
||||
this.btnnext.Click += new System.EventHandler(this.btnnext_Click);
|
||||
//
|
||||
// flbody
|
||||
//
|
||||
this.flbody.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flbody.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
|
||||
this.flbody.Location = new System.Drawing.Point(0, 0);
|
||||
this.flbody.Name = "flbody";
|
||||
this.flbody.Size = new System.Drawing.Size(393, 416);
|
||||
this.flbody.TabIndex = 1;
|
||||
this.flbody.WrapContents = false;
|
||||
//
|
||||
// IconManager
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
|
|
@ -14,17 +14,27 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace ShiftOS.WinForms.Applications
|
||||
{
|
||||
[FileHandler("Icon Pack", ".icons", "fileiconicons")]
|
||||
[RequiresUpgrade("icon_manager")]
|
||||
[Launcher("{TITLE_ICONMANAGER}", true, "al_icon_manager", "{AL_CUSTOMIZATION}")]
|
||||
[DefaultTitle("{TITLE_ICONMANAGER}")]
|
||||
[DefaultIcon("iconIconManager")]
|
||||
public partial class IconManager : UserControl, IShiftOSWindow
|
||||
public partial class IconManager : UserControl, IShiftOSWindow, IFileHandler
|
||||
{
|
||||
public IconManager()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public void OpenFile(string file)
|
||||
{
|
||||
var contents = Objects.ShiftFS.Utils.ReadAllText(file);
|
||||
var dict = JsonConvert.DeserializeObject<Dictionary<string, byte[]>>(contents);
|
||||
AppearanceManager.SetupWindow(this);
|
||||
Icons = dict;
|
||||
SetupUI();
|
||||
}
|
||||
|
||||
public void OnLoad()
|
||||
{
|
||||
LoadIconsFromEngine();
|
||||
|
|
Loading…
Reference in a new issue