Ejemplo n.º 1
0
 def setup_images(self) -> None:
     d_imgs = images.Loader(self.theme_path)(*self.icon_names)
     new_height = self.bar.height - self.actual_padding
     for key, img in d_imgs.items():
         img.resize(height=new_height)
         if img.width > self.length:
             self.length = int(img.width + self.actual_padding * 2)
         self.surfaces[key] = img.pattern
Ejemplo n.º 2
0
    def setup_images(self):
        d_images = images.Loader(ICON_PATH)(*ICONS)

        for name, img in d_images.items():
            new_height = self.bar.height - 1
            img.resize(height=new_height)
            self.iconsize = img.width
            self.surfaces[name] = img.pattern
Ejemplo n.º 3
0
    def setup_images(self):
        # Load icons
        names = ("audio-volume-muted", "audio-volume-low",
                 "audio-volume-medium", "audio-volume-high")
        d_images = images.Loader(self.theme_path)(*names)

        for name, img in d_images.items():
            new_height = self.bar.height - 1
            img.resize(height=new_height)
            self.iconsize = img.width
            self.surfaces[name] = img.pattern
Ejemplo n.º 4
0
 def setup_images(self):
     from libqtile import images
     names = (
         'audio-volume-high',
         'audio-volume-low',
         'audio-volume-medium',
         'audio-volume-muted',
     )
     d_images = images.Loader(self.theme_path)(*names)
     for name, img in d_images.items():
         new_height = self.bar.height - 1
         img.resize(height=new_height)
         if img.width > self.length:
             self.length = img.width + self.actual_padding * 2
         self.surfaces[name] = img.pattern
Ejemplo n.º 5
0
 def loader(self):
     png_dir = path.join(DATA_DIR, "png")
     svg_dir = path.join(DATA_DIR, "svg")
     return images.Loader(svg_dir, png_dir)
Ejemplo n.º 6
0
 def loader(self):
     png_dir = path.join(DATA_DIR, 'png')
     svg_dir = path.join(DATA_DIR, 'svg')
     return images.Loader(svg_dir, png_dir)