Chamaeleon (Your Material Textfield)

v2.2.1

Additions

  • Theme property, only available in the designer
    • Added Do not apply.
      • This will make sure you can customize both the border and hint color without it doing so automatically.
  • Added SetBorderColor so the border color of each text field can be changed by inputting their ID and a new color.
  • Added SetHintColor so the hint color of each text field can be changed by inputting their ID and a new color.
  • Added SetInput so the text of each text field can be changed by inputting their ID and new text.
  • Added SetInputColor so the input (text) color of each text field can be changed by inputting their ID and a new color.
  • Added SetSecondaryColor so the focused border color of each text field can be changed by inputting their ID and a new color.
    • By using the Configure method, you can still set this property, but it will be extension-wide so you donā€™t have to change the secondary color with this method every time.

Changes

  • Renamed Mode property to Theme
    • Renamed DARK to Dark
    • Renamed LIGHT to Light

Deletions

  • Removed TEXT_COLOR from the configuration structure. This is now set for each individual text field upon creation if itā€™s specified. Otherwise it will default to #FFFFFF. Of course as before, this does not have to be removed unless youā€™d like to remove it, but you will have to set this property for each text field upon creation now.

Improvements

  • Size has improved by 90%. New size is 67.9 KB.

Go here to preview an example of all the new blocks and go here to download io.gitlab.stormifire.textfields.aix.

7 Likes

Thank you!

Very good

Hello, am I doing it correct?
image
Iā€™m setting the border color but it does not change, itā€™s still grey. I have also set the theme property to Do Not Apply.

1 Like

have you did the id correct

Yes, Iā€™m pretty sure I got the ID correct.

Ahh this is interesting, I mustā€™ve changed something without knowing before I built because it was working. Iā€™ll have it fixed within the next hour.

@progr I have looked into it and it seems to be a problem with the block. When you set the border color as a property upon creating the text field, it works fine. I will still take a look into why it is not working with alternative methods however.

Alright, although, I tried using setHintColor and it also didnā€™t work, just letting you know.

1 Like

Yes it seems that all the blocks where you can set properties after creation do not work.

2 Likes

@hammerhai For the First Time i Tried your Extension - Appreciating the Results.
:+1: :+1: :+1:



Want To Know -
What are All the Possible Configurations.



Few Suggestions -

Update the First Post with All these Details & New Extension Download Link
Chamaeleon (Your Material Textfield) - #52 by FlailingOctopus

  1. Default Theme Must Be - DO NOT APPLY

  2. In Create Block i Think there is No Need of Configuration; A Seperate Block for Configuration will be Best.
    If there is a Seperate Block for Configuration, then Most Probably there is No Need of All Other Seperate Configuration Blocks.

  3. When i Rest my Mouse Cursor on Create Block, The Yellow Box (Donā€™t Know What that is Called :sweat_smile:) Pops and Says - Method to Create,
    As in Method of Create there is also Configuration (For Now (And Maybe in Future Too)), it Must Also Display All the Keys of Configureation.
    If you Follow Suggestion2, then Same /this should Apply on that Seperate Configuration Block.



Error /Bug -
Apart from Method to Create & Event for OnInputChanged No Other Block is Working.


Configurations - BOX_CORNER_RADIUS & SECONDARY_COLOR are Not Working.

Edit :
It Works, But Use it this Way

1 Like

You are not using them correctly then.

i am Using the Same Blocks as Provided by You -

Maybe you can Share a Demo .aia

And What About -

OK,

This Works -

This Donā€™t -

So in conclusion, you will need to configure beforehand, and created textfield cannot be re-configured.

2 Likes

Can Be Reconfigured, But Only For Next Create(s) -

2 Likes

This is interesting behavior, but the Create method should be able to be called beforehand because default values are set in place.

BOX_CORNER_RADIUS = 12
SECONDARY_COLOR = #1A73E9

The Configure block is there for options that are applied to all text fields, not just one. The configuration argument is used for the separate text fields.


The Configure block will not change anything created before itā€™s execution.

I Was Talking of Having Create Block Like -
blocks (5)

And Configuration Should Be Seperated Like -
blocks (6)

So, It Can Be Called With Respect To IDā€™s

This Will Remove The Need Of All These Seperate Blocks -
blocks (7)

Yes, but what if no one wants to change a color to any other property, but one? Then they just set the property to the current property instead of changing it?

1 Like

Hmm.

OK,

Personal Preference. :slightly_smiling_face:

And Scenario Dependent.

1 Like

Here are the blocks that are working, that I tested from the five.

  • SetInput
  • SetInputColor

Iā€™m not sure about whether SetHintColor works because Iā€™m getting an error, but I havenā€™t made any changes to that part so it might just be in general.

1 Like

As many of you might know, I am a contributor to the Dynamic Components extension. I am busy with that right now and itā€™s looking that I will not be able to fix anything outside of the scope of the SetHintColor block unless itā€™s on my part. Please remove the blocks below from your projects before Tuesday if you plan on upgrading.

  • SetBorderColor
  • SetSecondaryColor

SetHintColor is unlikely to be removed because itā€™s a simple error that should be easy to fix. Do check back on Monday or early Tuesday morning if itā€™s not for you already, to see if I have updated this list to include SetHintColor!