From 070b7bdfe5368c55801228e2d419c2c4e8d110fb Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Mon, 10 Oct 2016 15:38:30 +0300 Subject: [PATCH] update default theme --- examples/example1/src/example1.d | 17 ++++++++++++++++- views/res/slider_background.9.png | Bin 245 -> 245 bytes views/res/theme_default.xml | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/examples/example1/src/example1.d b/examples/example1/src/example1.d index b2d8e5d4..d32e4b8f 100644 --- a/examples/example1/src/example1.d +++ b/examples/example1/src/example1.d @@ -512,9 +512,24 @@ extern (C) int UIAppMain(string[] args) { line4.layoutWidth(FILL_PARENT); GroupBox gbgrid = new GroupBox("grid", "StringGridWidget"d, Orientation.Horizontal); StringGridWidget grid = new StringGridWidget("stringgrid"); - grid.resize(10, 10); + grid.resize(12, 10); grid.layoutWidth(FILL_PARENT); grid.layoutHeight(FILL_PARENT); + foreach (index, month; ["January"d, "February"d, "March"d, "April"d, "May"d, "June"d, "July"d, "August"d, "September"d, "October"d, "November"d, "December"d]) + grid.setColTitle(index, month); + for (int y = 0; y < 10; y++) + grid.setRowTitle(y, to!dstring(y+1)); + //grid.alignment = Align.Right; + grid.setColWidth(0, 30.pointsToPixels); + import std.random; + import std.string; + for (int x = 0; x < 12; x++) { + for (int y = 0; y < 10; y++) { + int n = uniform(0, 10000); + grid.setCellText(x, y, to!dstring("%.2f".format(n / 100.0))); + } + } + //grid.autoFit(); gbgrid.addChild(grid); line4.addChild(gbgrid); diff --git a/views/res/slider_background.9.png b/views/res/slider_background.9.png index e9c340c0c5ed795dde8e259f2f3f5a09004da5ed..2a925fa889637358a328e585389fc42ee769236b 100644 GIT binary patch delta 110 zcmV-!0FnRo0rdfpRR$yrkiCelky|}o8}psKC0D)rKYOWEu%bdckV9aXB}?F)de49W zq?9Tfs4B57rIe}A-N`uvJO%(WTc!jK3A5uqO^{y`Vqe{nq4m5%x>wlJUm!FSd-m)L Qx&QzG07*qoM6N<$f~0RRd;kCd delta 110 zcmV-!0FnRo0rdfpRR#tCpxqY*ky|}o^K#Dra@DK