Merge pull request #504 from and3md/filedialog_style

Add FILE_DIALOG_GRID style to simplify change only FileDialog grid
This commit is contained in:
Vadim Lopatin 2017-11-01 21:24:58 +03:00 committed by GitHub
commit 0d9ea8cf5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -771,6 +771,7 @@ class FileDialog : Dialog, CustomGridCellAdapter {
}
_fileList = new StringGridWidget("files");
_fileList.styleId = STYLE_FILE_DIALOG_GRID;
_fileList.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT);
_fileList.fullColumnOnLeft(false);
_fileList.fullRowOnTop(false);

View File

@ -115,6 +115,8 @@ immutable string STYLE_EDIT_BOX = "EDIT_BOX";
immutable string STYLE_LIST_BOX = "LIST_BOX";
/// standard style id for StringGrid
immutable string STYLE_STRING_GRID = "STRING_GRID";
/// standard style id for FileDialog StringGrid
immutable string STYLE_FILE_DIALOG_GRID = "FILE_DIALOG_GRID";
/// standard style id for background similar to transparent button
immutable string STYLE_TRANSPARENT_BUTTON_BACKGROUND = "TRANSPARENT_BUTTON_BACKGROUND";
/// standard style id for GroupBox

View File

@ -343,6 +343,15 @@
layoutWidth="FILL_PARENT"
layoutHeight="FILL_PARENT"
/>
<style id="FILE_DIALOG_GRID"
backgroundImageId="editbox_background"
padding="2,2,2,2"
margins="2,2,2,2"
minWidth="100"
minHeight="60"
layoutWidth="FILL_PARENT"
layoutHeight="FILL_PARENT"
/>
<style id="STATUS_LINE"
backgroundColor="#eceffa"
layoutWidth="FILL_PARENT"