#:import get_hex_from_color kivy.utils.get_hex_from_color


<ContentForPopupScreen@MDBoxLayout>
    id: box
    orientation: 'vertical'
    padding: dp(10)
    spacing: dp(10)
    adaptive_height: True
    pos_hint: {'top': 1}

    MDBoxLayout:
        adaptive_height: True

        Widget:

        MDRoundFlatButton:
            text: "Free call"
            on_press: app.callback_for_menu_items(self.text)
            md_bg_color: 1, 1, 1, .4
            text_color: app.theme_cls.bg_dark

        Widget:

        MDRoundFlatButton:
            text: "Free message"
            on_press: app.callback_for_menu_items(self.text)
            md_bg_color: 1, 1, 1, .4
            text_color: app.theme_cls.bg_dark

        Widget:

    OneLineIconListItem:
        text: "Video call"
        on_press: app.callback_for_menu_items(self.text)

        IconLeftWidget:
            icon: 'camera-front-variant'

    TwoLineIconListItem:
        text: "Call Viber Out"
        on_press: app.callback_for_menu_items(self.text)
        secondary_text:
            "[color=%s]Advantageous rates for calls[/color]" \
            % get_hex_from_color([0, 0, 0, .5])

        IconLeftWidget:
            icon: 'phone'

    TwoLineIconListItem:
        text: "Call over mobile network"
        on_press: app.callback_for_menu_items(self.text)
        secondary_text:
            "[color=%s]Operator's tariffs apply[/color]" \
            % get_hex_from_color([0, 0, 0, .5])

        IconLeftWidget:
            icon: 'remote'

    Widget:
        size_hint_y: None