mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
When directory indexer form open show browse dialog, removed bullet points from file listing
This commit is contained in:
parent
4bfb476682
commit
0e7b063d6f
3 changed files with 26 additions and 19 deletions
|
@ -35,8 +35,8 @@ private void InitializeComponent()
|
|||
this.btnUpload = new System.Windows.Forms.Button();
|
||||
this.tcMain = new System.Windows.Forms.TabControl();
|
||||
this.tpSettings = new System.Windows.Forms.TabPage();
|
||||
this.tpPreview = new System.Windows.Forms.TabPage();
|
||||
this.pgSettings = new System.Windows.Forms.PropertyGrid();
|
||||
this.tpPreview = new System.Windows.Forms.TabPage();
|
||||
this.tcMain.SuspendLayout();
|
||||
this.tpSettings.SuspendLayout();
|
||||
this.tpPreview.SuspendLayout();
|
||||
|
@ -48,7 +48,7 @@ private void InitializeComponent()
|
|||
this.wbMain.Location = new System.Drawing.Point(3, 3);
|
||||
this.wbMain.MinimumSize = new System.Drawing.Size(20, 20);
|
||||
this.wbMain.Name = "wbMain";
|
||||
this.wbMain.Size = new System.Drawing.Size(682, 432);
|
||||
this.wbMain.Size = new System.Drawing.Size(854, 558);
|
||||
this.wbMain.TabIndex = 0;
|
||||
//
|
||||
// txtFolderPath
|
||||
|
@ -98,8 +98,8 @@ private void InitializeComponent()
|
|||
this.tcMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.tcMain.Controls.Add(this.tpSettings);
|
||||
this.tcMain.Controls.Add(this.tpPreview);
|
||||
this.tcMain.Controls.Add(this.tpSettings);
|
||||
this.tcMain.Location = new System.Drawing.Point(8, 64);
|
||||
this.tcMain.Name = "tcMain";
|
||||
this.tcMain.SelectedIndex = 0;
|
||||
|
@ -117,17 +117,6 @@ private void InitializeComponent()
|
|||
this.tpSettings.Text = "Settings";
|
||||
this.tpSettings.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tpPreview
|
||||
//
|
||||
this.tpPreview.Controls.Add(this.wbMain);
|
||||
this.tpPreview.Location = new System.Drawing.Point(4, 22);
|
||||
this.tpPreview.Name = "tpPreview";
|
||||
this.tpPreview.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tpPreview.Size = new System.Drawing.Size(688, 438);
|
||||
this.tpPreview.TabIndex = 1;
|
||||
this.tpPreview.Text = "Preview";
|
||||
this.tpPreview.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// pgSettings
|
||||
//
|
||||
this.pgSettings.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
|
@ -137,6 +126,17 @@ private void InitializeComponent()
|
|||
this.pgSettings.TabIndex = 0;
|
||||
this.pgSettings.ToolbarVisible = false;
|
||||
//
|
||||
// tpPreview
|
||||
//
|
||||
this.tpPreview.Controls.Add(this.wbMain);
|
||||
this.tpPreview.Location = new System.Drawing.Point(4, 22);
|
||||
this.tpPreview.Name = "tpPreview";
|
||||
this.tpPreview.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tpPreview.Size = new System.Drawing.Size(860, 564);
|
||||
this.tpPreview.TabIndex = 1;
|
||||
this.tpPreview.Text = "Preview";
|
||||
this.tpPreview.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// DirectoryIndexerForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
|
|
@ -49,13 +49,21 @@ public DirectoryIndexerForm(IndexerSettings settings)
|
|||
InitializeComponent();
|
||||
Settings = settings;
|
||||
pgSettings.SelectedObject = Settings;
|
||||
BrowseFolder();
|
||||
}
|
||||
|
||||
private void btnBrowseFolder_Click(object sender, EventArgs e)
|
||||
{
|
||||
BrowseFolder();
|
||||
}
|
||||
|
||||
private void BrowseFolder()
|
||||
{
|
||||
// Translate
|
||||
Helpers.BrowseFolder("ShareX - Choose folder path", txtFolderPath);
|
||||
IndexFolder();
|
||||
if (Helpers.BrowseFolder("ShareX - Choose folder path", txtFolderPath))
|
||||
{
|
||||
IndexFolder();
|
||||
}
|
||||
}
|
||||
|
||||
private void txtFolderPath_TextChanged(object sender, EventArgs e)
|
||||
|
|
|
@ -13,7 +13,8 @@ a:link, a:visited {
|
|||
|
||||
ul {
|
||||
margin: 0px 0px 10px 0px;
|
||||
padding-left: 30px;
|
||||
list-style-type: none;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
|
@ -31,9 +32,7 @@ h1, h2, h3, h4, h5, h6 {
|
|||
|
||||
h1 {
|
||||
background-color: #336699;
|
||||
padding: 4px 0px 4px 0px;
|
||||
margin: 0px 0px -10px 0px;
|
||||
text-align: center;
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue