The present disclosure concerns a lighting device (100) and a method of masking an edge transition (15e). An edge structure (15) provides the light with a first edge transition (L1) along a circumference (15e) of the edge structure (15). A patterned layer (11) is provided between the edge structure (15) and the front side (31) of the device. The patterned layer (11) comprises a gradient edge pattern (11g) configured to provide the transmitted light with a second edge transition (L2). The gradient edge pattern (11g) is configured with respect to the circumference (15e) of the edge structure (15) to smoothen the first edge transition (L1). A diffuser (10) is disposed between the front side (31) and the patterned layer (11) for scattering the light of the second edge transition (L2) to smoothen the second edge transition (L2) of the gradient edge pattern (11g).