Changing colours

Wish to see a specific feature/change in future releases? Feel free to post it here, and if it gets enough "likes", we'd definitely include it in future releases!
Post Reply
kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Changing colours

Post by kanklovitch » 2020-04-13 13:59

Hi
I would love to change colours like this. I am not a fan of the standard colours.
Attachments
Colour-ag.jpg
Colour-ag.jpg (81.61 KiB) Viewed 3249 times

User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Re: Changing colours

Post by baudwalker » 2020-04-14 03:50

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

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing colours

Post by kanklovitch » 2020-04-14 15:35

Hi Barry
Is there anyway to do that in the hooks folder since it will be over written when updating my app.

Thank you

User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Re: Changing colours

Post by baudwalker » 2020-04-14 23:01

not that I know of, sorry

hgarbe
Veteran Member
Posts: 57
Joined: 2020-01-21 17:35

Re: Changing colours

Post by hgarbe » 2020-04-16 22:13

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.

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Changing colours

Post by jsetzer » 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
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

hgarbe
Veteran Member
Posts: 57
Joined: 2020-01-21 17:35

Re: Changing colours

Post by hgarbe » 2020-04-17 21:32

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.

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing colours

Post by kanklovitch » 2020-04-19 15:01

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.

Post Reply