Did I find the right examples for you? yes no

All Samples(8)  |  Call(7)  |  Derive(0)  |  Import(1)

src/e/x/experiments-HEAD/themes/plain.py   experiments(Download)
import cairo
 
from lib import graphics
import ui
from utils import override, vertical_gradient
 
    if self.state == "highlight":
        vertical_gradient(self, "#fff", "#edeceb", 0, self.height)
        self.graphics.fill_preserve()
    elif self.state == "pressed":
        vertical_gradient(self, "#B9BBC0", "#ccc", 0, self.height)
        self.graphics.fill_preserve()
    else:
        # normal
        vertical_gradient(self, "#fcfcfc", "#e8e7e6", 0, self.height)
 
    if state == "highlight":
        vertical_gradient(self, "#fff", "#edeceb", 0, self.height)
        self.graphics.fill_preserve()
    elif state == "pressed":