After home button replacement my screen colour went negative
That definitely looks like a hardware problem as the invert colours feature doesn't really look like that. The flickering also reinforces this as this would not happen normally. I would reopen the device and make sure that all connections are connected properly and intact.