Adhesion of polymer thin-films and patterned lines