Jump to content

Bootstrap Theme


Recommended Posts

  • 4 months later...

Bootstrap theme in UniGui Howto:

 

** This has only had 10sec of testing **

 

1) Unzip the 'bootstrap-unigui-ready.zip' file, it contains a css and ext-theme-bootstrap folder

2) Copy the css contents into your c:\program files (x86)\fmsoft\Framework\uniGui\ext-4.2.2.11144\resource\css' folder.

3) Copy the ext-theme-bootstrap folder into your 'c:\program files (x86)\fmsoft\Framework\uniGui\ext-4.2.2.11144\resource' folder

4) Select your 'MainModule' and type 'bootstrap into the Theme field.

 

That should be it (when you deploy you will need to copy the css & ext-theme-bootstrap folders.)

 

No warranty. A button/checkbox/page control appear to have the new look.

 

 

 

 

 

post-14-0-88359400-1412229188_thumb.png

bootstrap-unigui-ready.zip

post-14-0-92563100-1412229248_thumb.png

  • Upvote 3
Link to comment
Share on other sites

  • 3 months later...

1) Unzip the 'bootstrap-unigui-ready.zip' file, it contains a css and ext-theme-bootstrap folder

2) Copy the css contents into your c:\program files (x86)\fmsoft\Framework\uniGui\ext-4.2.2.11144\resource\css' folder.

3) Copy the ext-theme-bootstrap folder into your 'c:\program files (x86)\fmsoft\Framework\uniGui\ext-4.2.2.11144\resource' folder

4) Select your 'MainModule' and type 'bootstrap into the Theme field.

 

 

looks great. Two things in my application where the bootstrap theme does not show elements like expected: 

 

1. navigation buttons in grids:

 

post-254-0-10937200-1422618172_thumb.jpg

 

2. unispeedbutton:

 

post-254-0-02409600-1422618187_thumb.jpg

 

The unispeedbutton can be replaced with another control, but any suggestion for the grid navigation buttons?

 

brfc

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
Help me!

Based on extjs-theme-bootstrap-master.zip file

 

- I copied the file: ext-all-bootstrap.css for CSS folder to ext-4.2.5.1763 \ resources \ css.

- I copied all the ext-theme-ext-bootstrap folder to 4.2.5.1763 \ resources

 

However the thema not appear in MainModule \ Theme.

 

What should I do yet?

Link to comment
Share on other sites

  • 2 months later...

Or if you´re using the samples to get started.

procedure TMainForm.GetThemes;
var
  S : TUniStringArray;
  I : Integer;
begin
  S := UniServerModule.ThemeManager.AllThemes;

  ThemeComboBox.Items.Clear;
  for I := Low(S) to High(S) do
    ThemeComboBox.Items.Add(S);

    //add custom themes

    ThemeComboBox.Items.Add('bootstrap');

end;

Link to comment
Share on other sites

  • 10 months later...
 

To change the theme, just assign it in the onchange event of the combobox? I have the following code but this does not make the change.



procedure TMainForm.ThemeComboBoxChange(Sender: TObject);
begin
UniMainModule.Theme:=ThemeComboBox.Text;
end;

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...