src/cm/utils/comment_positioning.py
changeset 519 e89c25780e6e
parent 502 8ec189cc214d
child 533 c7aed0340a00
equal deleted inserted replaced
518:9172f4c6ad70 519:e89c25780e6e
    83            [c for c in commentList if not c.valid]
    83            [c for c in commentList if not c.valid]
    84 
    84 
    85 def add_marker(text, color, start_ids, end_ids, with_markers, with_colors):
    85 def add_marker(text, color, start_ids, end_ids, with_markers, with_colors):
    86 # TODO
    86 # TODO
    87 # THESE 3 LINES ARE REALLY JUST FOR TESTING THIS IS COPIED FROM C-TEXT.CSS AND SHOULD BE DONE DIFFERENTLY
    87 # THESE 3 LINES ARE REALLY JUST FOR TESTING THIS IS COPIED FROM C-TEXT.CSS AND SHOULD BE DONE DIFFERENTLY
    88     BCKCOLORS = ['#FFF', '#FFF39A', '#FFDB9A', '#FFC39A', '#FFAB9A', '#FF879A', '#FF7B9A', '#FF6272']
    88     BCKCOLORS = ['#ffffff', '#ffffa8', '#fff6a1', '#ffeb99', '#ffde91', '#ffd08a', '#ffc182', '#ffaf7a', '#ff9d73', '#ff896b', '#ff7363', '#ff5c5c']
    89     for i in range(30) :
    89     for i in range(14) :
    90         BCKCOLORS.append('#FF6272')
    90         BCKCOLORS.append('#ff5c5c')
    91 
    91 
    92     ret = text 
    92     ret = text 
    93     
    93     
    94     if with_markers:
    94     if with_markers:
    95         end_ids.reverse()
    95         end_ids.reverse()