FileDialog: add FILE_DIALOG_GRID style to simplify change only FileDialog grid font.

This commit is contained in:
and3md 2017-10-31 19:11:35 +01:00
parent f530b6880e
commit d0aba02426
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"