~flowblok/universal-applets/enhancements_extras

« back to all changes in this revision

Viewing changes to src/share/screenlets-extras/CircleClock/CircleClockScreenlet.py

Merged in upstream changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
151
151
                self.redraw_canvas()
152
152
                return True
153
153
 
154
 
 
155
154
        def on_draw(self, ctx):
156
 
 
157
155
                ctx.scale(self.scale, self.scale)
158
156
                # draw bg (if theme available)
159
157
                ctx.set_operator(cairo.OPERATOR_OVER)
195
193
                        ctx.set_source_rgba(self.color_text[0],self.color_text[1],self.color_text[2],self.color_text[3])
196
194
                        text = '<small><small><small>' + self.sensor + '</small></small></small>\n' + self.text_prefix + str(self.new_time) + self.text_suffix + '\n' + '<small><small><small>' + self.day + '</small></small></small>'
197
195
                        if self.theme:self.theme.draw_text(ctx,text, 0, self.y_position, self.font_name, self.font_size, self.width,pango.ALIGN_CENTER)
198
 
                        
199
 
                        
200
196
        
201
 
 
202
197
        def on_draw_shape(self,ctx):
203
198
                self.on_draw(ctx)
204
199