Page 1 of 1

Changing colours

Posted: 2020-04-13 13:59
by kanklovitch
Hi
I would love to change colours like this. I am not a fan of the standard colours.

Re: Changing colours

Posted: 2020-04-14 03:50
by baudwalker
in the app root you will find "home.php" find

Code: Select all

Classes of first and other blocks
		---------------------------------
		For possible classes, refer to the Bootstrap grid columns, panels and buttons documentation:
			Grid columns: http://getbootstrap.com/css/#grid
			Panels: http://getbootstrap.com/components/#panels
			Buttons: http://getbootstrap.com/css/#buttons
	*/
	$block_classes = array(
		'first' => array(
			'grid_column' => 'col-md-6 col-lg-4',
			'panel' => 'panel-warning',
			'link' => 'btn-warning'
		),
		'other' => array(
			'grid_column' => 'col-md-6 col-lg-4',
			'panel' => 'panel-info',
			'link' => 'btn-info'
		)
	);
this shows you how to change the first and all the others. I have not tried to change individual panels as yet.

Barry

Re: Changing colours

Posted: 2020-04-14 15:35
by kanklovitch
Hi Barry
Is there anyway to do that in the hooks folder since it will be over written when updating my app.

Thank you

Re: Changing colours

Posted: 2020-04-14 23:01
by baudwalker
not that I know of, sorry

Re: Changing colours

Posted: 2020-04-16 22:13
by hgarbe
Hi,

one way to deal with your color-"Problem" would be to manually create the buttons. This can be done in the hooks Folder using the links-home.php. This would include them in the hooks folder. But the downside is: you would loose the automatic record count. Manually creating those would require to add sql-query to the links-home.php.
If you simple don't like the Default colors those can be changed in the bootstrap.css in /resources/initializr/css.
But this also would be overwritten when re-generating your app.

Re: Changing colours

Posted: 2020-04-17 03:33
by jsetzer
hgarbe wrote:
2020-04-16 22:13
... can be changed in the bootstrap.css in /resources/initializr/css.
But this also would be overwritten when re-generating your app.
Did you try changing bootstrap.css and then making the file readonly?

You can also create an additional css file like hooks/header-extras.css and reference this in hooks/header-extras.php

Best,
Jan

Re: Changing colours

Posted: 2020-04-17 21:32
by hgarbe
jsetzer wrote:
2020-04-17 03:33
hgarbe wrote:
2020-04-16 22:13
... can be changed in the bootstrap.css in /resources/initializr/css.
But this also would be overwritten when re-generating your app.
Did you try changing bootstrap.css and then making the file readonly?

You can also create an additional css file like hooks/header-extras.css and reference this in hooks/header-extras.php

Best,
Jan
You're right Jan. Setting it read only would help. Had a second look today on the files that AG creates and potentially overwrites on second creation run. And noticed bootstrap.css is not part of it. So I was partially wrong with that.

Re: Changing colours

Posted: 2020-04-19 15:01
by kanklovitch
Thanks Guys, I like your suggestion Jan, I will work my way through that one in the next day or two. I know so little when it comes to customizing but I really enjoy learning. I love using your JS Helper for super easy tabs, with you and Ahmad leading the way I am looking forward very much to develop my own applications without being a programmer. If great application ideas can be implemented with an "almost" out of the box AppGini than I am all in, this will turn out to be my "retirement" business. Thanks to everyone in the forum as well, I couldn't do this without their help as well.