コード例 #1
0
        public void set_theme(string themeName)
        {
            this.themeName = themeName;
            config.save("gui.theme_name", themeName);
            switch (themeName)
            {
            case "classic":
                config.save("gui.output.bg", "white");
                config.save("gui.output.fg", "black");
                break;

            case "blue":
                config.save("gui.output.bg", "blue");
                config.save("gui.output.fg", "white");
                break;

            case "pink":
                config.save("gui.output.bg", "indigo");
                config.save("gui.output.fg", "white");
                break;

            case "control":
                config.save("gui.output.bg", "Control");
                config.save("gui.output.fg", "ControlText");
                break;
            }
            Console.WriteLine("set_theme: {0}", themeName);
        }
コード例 #2
0
        private void CheckR2path()
        {
            string r2path = rconfig.r2path;

            if (r2path == null || !File.Exists(rconfig.r2path))
            {
                if (((object)r2pw) != null)
                {
                    r2pw.Show("Form1: CheckR2path(): Path for 'radare2.exe' not found...", "radare2.exe not found");
                }
                openFileDialog1.FileName = "radare2.exe";
                openFileDialog1.Title    = "Please, locate your radare2.exe binary";
                openFileDialog1.ShowDialog();
                rconfig.save("r2path", openFileDialog1.FileName);
            }
        }
コード例 #3
0
 public void open(String fileName)
 {
     if (this.r2 == null)
     {
         this.r2 = new R2Pipe(fileName, rconfig.r2path);
     }
     else
     {
         this.r2.RunCommand("o " + fileName);
     }
     this.fileName = fileName;
     this.r2html   = new r2html(this);
     if (!fileName.Equals("-"))
     {
         rconfig.save("gui.lastfile", fileName);
     }
 }
コード例 #4
0
        private void CheckR2path()
        {
            string r2path = rconfig.r2path;

            if (r2path == null)
            {
                MessageBox.Show("Path for 'radare2.exe' not found...", "radare2.exe not found", MessageBoxButtons.OK, MessageBoxIcon.Information);
                openFileDialog1.FileName = "radare2.exe";
                openFileDialog1.Title    = "Please, locate your radare2.exe binary";
                openFileDialog1.ShowDialog();
                rconfig.save("r2path", openFileDialog1.FileName);
            }
        }
コード例 #5
0
        public void set_theme(string themeName)
        {
            this.themeName = themeName;
            config.save("gui.theme_name", themeName);
            config.save("gui.hexview.css", string.Format("hexview.{0}.css", themeName));
            switch (themeName)
            {
            case "classic":
                config.save("gui.output.bg", "white");
                config.save("gui.output.fg", "black");
                config.save("gui.output.fg.fcn", "black");
                config.save("gui.output.bg.fcn", "white");
                config.save("gui.output.fg.loc", "black");
                config.save("gui.output.bg.loc", "white");
                config.save("gui.output.fg.sym", "black");
                config.save("gui.output.bg.sym", "lightcyan");
                config.save("gui.output.fg.imp", "black");
                config.save("gui.output.bg.imp", "lightcyan");
                config.save("gui.output.fg.sub", "black");
                config.save("gui.output.bg.sub", "white");
                config.save("gui.output.fg.entry0", "highlight");
                config.save("gui.output.bg.entry0", "white");
                config.save("gui.hexview.css", "r2pipe.css");
                break;

            case "azure":
                config.save("gui.output.bg", "Azure");
                config.save("gui.output.fg", "DarkSlateGray");
                break;

            case "pink":
                config.save("gui.output.bg", "Purple");
                config.save("gui.output.fg", "white");
                break;

            case "control":
                config.save("gui.output.bg", "Control");
                config.save("gui.output.fg", "ControlText");
                break;

            case "terminal256":
            case "akira":
                config.save("gui.output.bg", "black");
                config.save("gui.output.fg", "Aquamarine");
                config.save("gui.output.fg.fcn", "white");
                config.save("gui.output.bg.fcn", "black");
                config.save("gui.output.fg.loc", "lime");
                config.save("gui.output.bg.loc", "black");
                config.save("gui.output.fg.sym", "white");
                config.save("gui.output.bg.sym", "InactiveCaptionText");
                config.save("gui.output.fg.imp", "highlight");
                config.save("gui.output.bg.imp", "black");
                config.save("gui.output.fg.sub", "DarkTurquoise");
                config.save("gui.output.bg.sub", "black");
                config.save("gui.output.fg.entry0", "yellow");
                config.save("gui.output.bg.entry0", "black");
                break;

            case "lemon":
                config.save("gui.output.bg", "Khaki");
                config.save("gui.output.fg", "black");
                break;

            case "blue":
                config.save("gui.output.bg", "DarkBlue");
                config.save("gui.output.fg", "white");
                config.save("gui.output.fg.fcn", "white");
                config.save("gui.output.bg.fcn", "DarkBlue");
                config.save("gui.output.fg.sym", "white");
                config.save("gui.output.bg.sym", "RoyalBlue");
                config.save("gui.output.fg.sub", "white");
                config.save("gui.output.bg.sub", "DarkBlue");
                config.save("gui.output.fg.loc", "white");
                config.save("gui.output.bg.loc", "DarkBlue");
                config.save("gui.output.fg.loc", "white");
                config.save("gui.output.fg.imp", "white");
                config.save("gui.output.bg.imp", "RoyalBlue");     //RoyalBlue DarkBlue MidnightBlue
                config.save("gui.output.fg.entry0", "yellow");
                config.save("gui.output.bg.entry0", "DarkBlue");
                break;
            }
            Console.WriteLine("set_theme: {0}", themeName);
        }
コード例 #6
0
        public void set_theme(string themeName)
        {
            this.themeName = themeName;
            config.save("gui.theme_name", themeName);
            config.save("gui.hexview.css", string.Format("hexview.{0}.css", themeName));
            switch (themeName)
            {
            case "classic":
                config.save("gui.output.bg", "white");
                config.save("gui.output.fg", "black");
                config.save("gui.hexview.css", "r2pipe.css");
                break;

            case "azure":
                config.save("gui.output.bg", "Azure");
                config.save("gui.output.fg", "DarkSlateGray");
                break;

            case "pink":
                config.save("gui.output.bg", "indigo");
                config.save("gui.output.fg", "white");
                break;

            case "control":
                config.save("gui.output.bg", "Control");
                config.save("gui.output.fg", "ControlText");
                break;

            case "terminal256":
                config.save("gui.output.bg", "black");
                config.save("gui.output.fg", "Aquamarine");
                break;

            case "lemon":
                config.save("gui.output.bg", "Khaki");
                config.save("gui.output.fg", "black");
                break;
            }
            Console.WriteLine("set_theme: {0}", themeName);
        }