I'd say her hair changing is part of her charm/character. She's doing it to get a compliment/reaction out of Kodaka. Not to mention she's always been spontaneous and an otaku.